Y
Yue
Hi, all,
I know this is too simple...but can somebody tell me:
any expression other than "0" is of boolean "true" type
so: if (x) {} is equivalent to if(x != 0) (1. it has to be a "true"
boolean within if bracket?)
2. if I want the expression to return false in the if bracket, I just
need to write a single "0" or "x=0"
Thanks very much!
yue
I know this is too simple...but can somebody tell me:
any expression other than "0" is of boolean "true" type
so: if (x) {} is equivalent to if(x != 0) (1. it has to be a "true"
boolean within if bracket?)
2. if I want the expression to return false in the if bracket, I just
need to write a single "0" or "x=0"
Thanks very much!
yue