Difference between revisions of "FALSE"

From Second Life Wiki
Jump to navigation Jump to search
(there was nothing here! now there is.)
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|TRUE}}
|constants={{LSL ConstRow|TRUE}}
|functions=
|functions=

Revision as of 18:04, 4 August 2009

Description

Constant: integer FALSE = 0;

The integer constant FALSE has the value 0

Related Articles

Constants

•  TRUE

Articles

•  boolean

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>

Deep Notes

Search JIRA for related Issues

Signature

integer FALSE = 0;