FANDOM


integer FALSE = 0;

The integer constant FALSE has the value 0.


Example

default 
{
	state_entry()
	{
		if (llGetScriptState("anotherscript") == FALSE)
		{
			llSetScriptState("anotherscript", TRUE);
		}
	}
}

Remarks

Though it is an integer constant, it's use is intended for boolean comparisons or as parameter for functions, that require a boolean value.

Notes

The value 0 can be used instead of the constant FALSE, which is a major difference to some professional programming languages. Still it is suggested, to avoid using 0 instead of FALSE, as it makes more readable code and avoids problems, where scripts could break because of future changes.

Using TRUE and FALSE in boolean expressions, where functions return those values, makes code more readable and failsafe, even if it's correct syntax to write the above example as:

if (!llGetScriptState("anotherscript"))

The contrary to FALSE is TRUE.

Related Constants

  • TRUE - An integer constant of value 1 for boolean comparisons

Platforms

SecondLife (agni), Secondlife (aditi), OpenSimulator

See alsoEdit

  • FALSE - Constant reference at SecondLife LSL Wiki
  • FALSE - Constant reference at lslwiki.net


  Icon-edit-22x22 Read comments or write a new one!    

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.