FALSE
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Caveats
Examples
<lsl> integer is_owner(key inputKey) {
key owner = llGetOwner();
if (inputKey == owner) return TRUE;
// else
return FALSE;
}
default {
touch_start(integer num_detected) { key id = llDetectedKey(0);
// PUBLIC_CHANNEL has the integer value 0
if ( is_owner(id) ) llSay(PUBLIC_CHANNEL, "Hello, you're my owner!"); else llSay(PUBLIC_CHANNEL, "Hello, you're not my owner!"); }
} </lsl> <lsl> default {
state_entry() { integer q = TRUE;
if(q) { // PUBLIC_CHANNEL has the integer value 0 llSay(PUBLIC_CHANNEL, "TRUE");
q = FALSE; if(!q) { llSay(PUBLIC_CHANNEL, "FALSE"); q = TRUE;
if(!q) llSay(PUBLIC_CHANNEL, "Won't say this.");
else { llSay(PUBLIC_CHANNEL, "TRUE"); q = FALSE; if(q) llSay(PUBLIC_CHANNEL, "Won't say this.");
else llSay(PUBLIC_CHANNEL, "FALSE"); } } else llSay(PUBLIC_CHANNEL, "Won't say this."); } else llSay(PUBLIC_CHANNEL, "Won't say this."); }
} </lsl>