Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

How to use 'OR' in LSL

Thorne Kaiser
Nice Guy
Join date: 29 Nov 2005
Posts: 132
03-11-2006 16:26
I may be dreaming here, but can I use 'OR' in an IF statement??

CODE
                                   
if(llGetScale() == iValue OR jValue OR kValue)
{
//Do my stuff
}


I saw in the WIKI that || is an operator for OR, but it just don't work. iValue, jValue, and kValue are all vector if that helps.

:) Thorne
Starax Statosky
Unregistered User
Join date: 23 Dec 2003
Posts: 1,099
03-11-2006 16:34
If (Fries==Hot || Fries==Cold)
{
llSay(0,"I'll eat 'em anyway";);
}
Thorne Kaiser
Nice Guy
Join date: 29 Nov 2005
Posts: 132
Thanks!
03-11-2006 17:10
Thanks!