Groove Widdit wrote...
There are boolean operators in C that evaluate to true or false like == or <.
Yes, but in NWScript TRUE (1) and FALSE (0) are both integers. Thus commands like if(), while(), etc. take on an integer value for their argument, checking to see if that integer is 0 or not. Using if(x == TRUE) can be problematic as it will check specifically for the value of 1 and not all non-zero integers as would be the case with if(x).