[SOLVED] Combined Strings not == single string


#1

Hello, I am having some troubles merging two strings to equal one. I want the two strings, once added together, to be able to == another string. I tried it, but its not printing the line. Any help would be appreciated :slight_smile: Does anybody have any idea on why this might not work?

firstChar = "a";
secondChar = "a";
charDone = 1;


 if (charDone == 1) {
    finalChar = firstChar + secondChar;
  }


 if (finalChar == "aa") {
    print( "aa Complete");
  }

#2

Processing.org/reference/String_equals_.html


#3

That worked perfectly. Thank you so much :smile: