LSL Wiki Mirror 7-7-7 : condition

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::

Condition

A condition is often used to reference statements within a flow-control statement's parenthesis. Conditions determine whether the code contained within the conditional statement's block should be executed.

Example:
if (isAwesome) {
    llOwnerSay("w00t! This is awesome!");
} else {
    llOwnerSay("Aww, this is lame :-|");
}

while(isAwesome) {
    llOwnerSay("Awesome!");
}
In this case, isAwesome is the condition.


If-Else | statement | code
There is no comment on this page. [Display comments/form]