Pages: [1]   Go Down
Author Topic: Boolean operators  (Read 186 times)
0 Members and 1 Guest are viewing this topic.
SCC
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

can you do this:

Code:
if( x > 0 && y > 0 && z == 0 )

Ive done this before:

Code:
if( x > 0 && y > 0 )

Is it possible to use multiple && in an IF statement?
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 502
Posts: 19085
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, but why ask on a forum? Try it and see.
Logged


Pages: [1]   Go Up
Jump to: