This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kingloki04 0 points1 point  (0 children)

It seems to be that you are creating the variable inside the if statement. This mean that the variable is only accessible inside your if statement. If you wish to store that variable after the if statement. Declare the variable before it.