Quote:
Originally Posted by dice7
Quote:
Originally Posted by ♣ ⓐⓢⓢ
false stands 0 - (!statement) or (statement == false) or (statement == 0)
true stands for all positiv numbers - (statement) or (statement == true) or (statment > 0)
lately in irc, someone asked if (statement) is the same as (statement == 1)
and someone else said yes, I loled and switched the channel :O
|
True stands for positive and negative numbers and the guy on irc was right. (statement) means (statement != 0), which is in some way (statement == 1)
pawn Код:
for(new statement = -1; statement < 3; statement ++) { if (statement) { printf("%d", statement); } }
This will print -1, 1 and 2
|
No, lol
if (statement) is the same as if (statement == true) not if (statement == 1)
Bool and integer's aren't the same, I'm afraid