Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

simple question ( I think )

Knight Nootan
Registered User
Join date: 26 May 2008
Posts: 73
09-20-2009 19:46
How would I tell a script to do something if one number is larger than the other?

Example:

if(count == (integer)"29";)

So if count is greater than 29 I want it to say blah blah blah.

I know the rest of the script just this part here on how to tell it if count is greater.

Thanks
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
09-20-2009 20:09
> is the greater than operator, you would use that instead of == in your example.

if(count > (integer)"29";)

The list:

http://wiki.secondlife.com/wiki/LSL_Operators
Knight Nootan
Registered User
Join date: 26 May 2008
Posts: 73
09-20-2009 20:16
Thank you!!