Difference between revisions of "FALSE/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
 
Line 4: Line 4:
|value=0
|value=0
|desc
|desc
|examples=<lsl>integer q;
|examples=<source lang="lsl2">integer q;


default
default
Line 47: Line 47:
         }
         }
     }
     }
}</lsl>
}</source>
|constants={{LSL ConstRow/ja|TRUE}}
|constants={{LSL ConstRow/ja|TRUE}}
|functions=
|functions=

Latest revision as of 15:14, 25 February 2016

解説

定数: integer FALSE = 0;

integer 定数 FALSE の値は 0 です。

関連記事

定数

•  TRUE

記事

•  boolean

サンプル

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");
        }
    }
}

特記事項

この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)