# Help with following code

**URL:** <https://discourse.processing.org/t/help-with-following-code/2448>\
**Category:** Coding Questions\
**Created:** [August 7, 2018, 5:24pm UTC](https://discourse.processing.org/t/help-with-following-code/2448 "2018-08-07T17:24:16Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jb4x](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jb4x/32/789_2.png) [@jb4x](https://discourse.processing.org/u/jb4x)\
**Post date:** [August 7, 2018, 5:34pm UTC](https://discourse.processing.org/t/help-with-following-code/2448/3 "2018-08-07T17:34:30Z")

</div>

Please format your code with the `</>` sign.  
You can edit your post by clicking the little pen on the bottom right corner of your post.

Concerning your problem, on this line: `if (gameIntro == 0)` you are trying to compare an integer value with a string variable. You can’t do that . You first need to convert your string into an integer.

Edit:  
You can actually check out this subject on how to convert a string into an integer: [Covert String to Integer](https://discourse.processing.org/t/covert-string-to-integer/2430/5)

---

_[View the full topic](https://discourse.processing.org/t/help-with-following-code/2448)._
