TRUE: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
there was nothing here! now there is. |
||
| Line 4: | Line 4: | ||
|value=1 | |value=1 | ||
|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|FALSE}} | |constants={{LSL ConstRow|FALSE}} | ||
|functions= | |functions= | ||
Revision as of 18:07, 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>