Difference between revisions of "FALSE/ja"

From Second Life Wiki
Jump to navigation Jump to search
(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||[[boolean/ja|boolean]]|}}
|articles={{LSL DefineRow||[[boolean]]|}}
|events=
|events=
|cat1
|cat1

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

特記事項

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