Talk:If

From Game Editor

Revision as of 13:00, 30 August 2008 by Makslane (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
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)