Skip to content
lsl.devlsl.devLSL Dev

FALSE

Looking for the current API? Open the FALSE reference →

Wiki description

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

Examples

integer is_owner(key inputKey)
{
    if (inputKey == llGetOwner() )
        return TRUE;
//  else
        return FALSE;
}

default
{
    touch_start(integer num_detected)
    {
        key id = llDetectedKey(0);

        if ( is_owner(id) )
            llSay(0, "Hello, you're my owner!");
        else
            llSay(0, "Hello, you're not my owner!");
    }
}
default
{
    state_entry()
    {
        integer 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.");
    }
}

See also: constants

See also: articles

Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

From the Second Life Wiki

Community documentation adapted from FALSE, by Linden Research, Inc. and contributing residents.View contributors and history.

Imported wiki revision:

  • FALSE (revision 1194640, )

Licensed under CC BY-SA 3.0. Last wiki edit: .Formatting and links have been adapted for this site; API metadata follows the LSL definitions.