# FALSE

*LSL constant*

```lsl
integer FALSE = 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](https://wiki.secondlife.com/wiki/Boolean) value instead a [integer](https://wiki.secondlife.com/wiki/Integer) value (0).

## Examples

<details open>
<summary>Example 1</summary>

```lsl collapse={9-20}
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!");
    }
}
```

</details>

<details>
<summary>Example 2</summary>

```lsl collapse={1-6, 28-34}
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.");
    }
}
```

</details>

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [TRUE](/constants/TRUE/) |  |  |  |

### Articles

- [boolean](https://wiki.secondlife.com/wiki/Boolean)

---

*Source: [FALSE](https://wiki.secondlife.com/wiki/FALSE) on the Second Life Wiki. Content from the Second Life Wiki article FALSE (revision 1194640, 2015-01-23), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/FALSE/
