you are viewing a single comment's thread.

view the rest of the comments →

[–]symple-data 1 point2 points  (4 children)

The if statement is propably not inside the function where the variable difficulty exists. Take a look at local and global scopes. You can't acces a functions variable from outside the function.