[SOLVED] Combined Strings not == single string

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");
  }
1 Like

Processing.org/reference/String_equals_.html

1 Like

That worked perfectly. Thank you so much :smile: