Don't click here unless you want to be banned.

LSL Wiki : Equality

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawling021.us.archive.org

Equality

Equality operators in LSL test a condition on two inputs and return a value of TRUE or FALSE.

Equality Operators

Operator Name Syntax Description
> Greater then var1 > var2
Returns TRUE if var1 is greater then var2, FALSE otherwise.
var1 and var2 must be either an integer or a float.
< Less then var1 < var2 Returns TRUE if var1 is less then var2, FALSE otherwise.
var1 and var2 must be either an integer or a float.
>= Greater then or equal to var1 >= var2
Returns TRUE if var1 is greater then or equal to var2, FALSE otherwise.
var1 and var2 must be an integer or a float.
<= Less then or equal to var1 <= var2
Returns TRUE if var1 is less then or equal to var2, FALSE otherwise.
var1 and var2 must be an integer or a float.
!= Not equal to var1 != var2
Returns TRUE if var1 is not equal to var2, FALSE otherwise.
var1 and var2 can be any type.
== Equal to var1 == var2
Returns TRUE if var1 is equal to var2, FALSE otherwise.
var1 and var2 can be any type.
Note:

These operators are often used in conditional statements.



Operators | Unary | Binary | Bitwise | Boolean | Equality | Assignment
Comments [Hide comments/form]
Attach a comment to this page: