# \[SOLVED\] Combined Strings not == single string

**URL:** <https://discourse.processing.org/t/solved-combined-strings-not-single-string/8310>\
**Category:** Beginners\
**Created:** [February 12, 2019, 3:39am UTC](https://discourse.processing.org/t/solved-combined-strings-not-single-string/8310 "2019-02-12T03:39:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kandles11](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kandles11/32/3645_2.png) [@kandles11](https://discourse.processing.org/u/kandles11)\
**Post date:** [February 12, 2019, 3:39am UTC](https://discourse.processing.org/t/solved-combined-strings-not-single-string/8310/1 "2019-02-12T03:39:56Z")

</div>

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 🙂 Does anybody have any idea on why this might not work?

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

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

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

```

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [February 12, 2019, 3:54am UTC](https://discourse.processing.org/t/solved-combined-strings-not-single-string/8310/2 "2019-02-12T03:54:12Z")

</div>

[Processing.org/reference/String\_equals\_.html](http://Processing.org/reference/String_equals_.html)

---

<div class="post-metadata">

**Author:** ![kandles11](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kandles11/32/3645_2.png) [@kandles11](https://discourse.processing.org/u/kandles11)\
**Post date:** [February 12, 2019, 3:57am UTC](https://discourse.processing.org/t/solved-combined-strings-not-single-string/8310/3 "2019-02-12T03:57:18Z")

</div>

That worked perfectly. Thank you so much 😄
