Talk:If

From Game Editor

Jump to: navigation, search

The if(var != 0) is not the same thing of the if(var == 1) In the fp sample, the fopen function will retursn any value <> 0 if sucess. If you test only the 1 your program don't will works. The test with 1 is good only if you know the variable will only have the 0 or 1 values (a boolean)