Difference between revisions of "FALSE/ja"
< FALSE
Jump to navigation
Jump to search
Asuka Neely (talk | contribs) (New page: {{LSL Constant/ja |name=FALSE |type=integer |value=0 |desc |examples |constants={{LSL ConstRow/ja|TRUE}} |functions= |articles={{LSL DefineRow||boolean|}} |events= |cat1 |ca...) |
|||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
|value=0 | |value=0 | ||
|desc | |desc | ||
|examples | |examples=<source lang="lsl2">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"); | |||
} | |||
} | |||
}</source> | |||
|constants={{LSL ConstRow/ja|TRUE}} | |constants={{LSL ConstRow/ja|TRUE}} | ||
|functions= | |functions= | ||
|articles={{LSL DefineRow||[[ | |articles={{LSL DefineRow||[[boolean]]|}} | ||
|events= | |events= | ||
|cat1 | |cat1 |
Latest revision as of 15:14, 25 February 2016
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");
}
}
}