Difference between revisions of "FALSE"
Jump to navigation
Jump to search
(there was nothing here! now there is.) |
|||
Line 4: | Line 4: | ||
|value=0 | |value=0 | ||
|desc | |desc | ||
|examples | |examples=<lsl>integer q; | ||
default | |||
{ | |||
state_entry() | |||
{ | |||
q = TRUE; | |||
if(q) | |||
{ | |||
llSay(0, "TRUE"); | |||
q = FALSE; | |||
if(!q) | |||
{ | |||
llSay(0, "FALSE"); | |||
q = TRUE; | |||
if(!q) | |||
{ | |||
llSay(0, "Won't say this"); | |||
} | |||
else | |||
{ | |||
llSay(0, "TRUE"); | |||
q = FALSE; | |||
if(q) | |||
{ | |||
llSay(0, "Won't say this"); | |||
} | |||
else | |||
{ | |||
llSay(0, "FALSE"); | |||
} | |||
} | |||
} | |||
else | |||
{ | |||
llSay(0, "Won't say this"); | |||
} | |||
} | |||
else | |||
{ | |||
llSay(0, "Won't say this"); | |||
} | |||
} | |||
}</lsl> | |||
|constants={{LSL ConstRow|TRUE}} | |constants={{LSL ConstRow|TRUE}} | ||
|functions= | |functions= |
Revision as of 18:04, 4 August 2009
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Caveats
Examples
<lsl>integer q;
default {
state_entry() { q = TRUE; if(q) { llSay(0, "TRUE"); q = FALSE; if(!q) { llSay(0, "FALSE"); q = TRUE; if(!q) { llSay(0, "Won't say this"); } else { llSay(0, "TRUE"); q = FALSE; if(q) { llSay(0, "Won't say this"); } else { llSay(0, "FALSE"); } } } else { llSay(0, "Won't say this"); } } else { llSay(0, "Won't say this"); } }
}</lsl>