integer FALSE = 0;

The integer constant FALSE has the value 0.


		if (llGetScriptState("anotherscript") == FALSE)
			llSetScriptState("anotherscript", TRUE);


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


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


SecondLife (agni), Secondlife (aditi), OpenSimulator

See alsoEdit

  • FALSE - Constant reference at SecondLife LSL Wiki
  • FALSE - Constant reference at

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