#Error in If

12 messages · Page 1 of 1 (latest)

humble cipherBOT
#

This post has been reserved for your question.

Hey @wise crest! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

mild salmon
#

you have to convert the string to an integer in order to compare the two, try: Integer.parseInt(Pregunta)

#

ah

#

you gotta set that value

#

int val = Integer.parseInt(Pregunta)

#

like that, and then compare using val

wise crest
#

but, I did that

rotund vessel
#

parseInt doesn't work in-place

#

Assign to a new variable

wise crest
#

0kk

#

thanks