Found my mistake... the logic is right but on the comparison in the if statement i used just "=" and not "=="...
so the value changed.. thank you guys!!
This expression does not appear in any of the code that you have posted
If you did have it in your code, you should have had the warning "expression not boolean" when you compiled it.
To add comments, please log in or register