PDA

View Full Version : if and/or operations in LScript?



NanoGator
10-07-2004, 04:51 PM
Grr. I know this is a basic stupid question, but I can't find the answer. In other languages you can say something like:

if x==1 and y==2 then z=3

I can't figure out the 'and' bit in LScript. Is it there? Is 'or' there as well?

Karmacop
10-07-2004, 07:51 PM
Wouldn't you have

if ( x == 1 && y == 2 )
z = 3;

&& is and
|| is or

I think that's how it works with lscript anyway.

NanoGator
10-07-2004, 10:59 PM
Beaututiful! Thank ya!