FALSE

From Second Life Wiki
Revision as of 11:22, 4 January 2012 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Description

Constant: integer FALSE = 0;

The integer constant FALSE has the value 0

Constant used to define the FALSE value in conditional structures or variables/constants in general. Usually it's used because it is more readable, indicating a boolean value instead a integer 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;