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...)
 
m
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/ja|TRUE}}
|constants={{LSL ConstRow/ja|TRUE}}
|functions=
|functions=
|articles={{LSL DefineRow||[[boolean/ja|boolean]]|}}
|articles={{LSL DefineRow||[[boolean]]|}}
|events=
|events=
|cat1
|cat1

Revision as of 20:41, 22 May 2010

解説

定数: integer FALSE = 0;

integer 定数 FALSE の値は 0 です。

関連記事

定数

•  TRUE

記事

•  boolean

サンプル

<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>

特記事項

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