On Thu, Apr 19, 2012 at 3:51 PM, Black, Michael (IS)
<michael.bla...@ngc.com> wrote:
> You are correct that non-zero will be treated as true.
>
> That's more an accident then anything else as everybody is checking "!= 0" 
> for true.

No, C treats any non-zero value as true, as in "if (condition) ..." --
that condition will considered true if it's non-zero.

If you ever see "!!condition", that's just to normalize true values.

Nico
--
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to