Unofficial LSL Reference

[[constants:logic:start]]


Unofficial LSL reference

User Tools

Login

You are currently not logged in! Enter your authentication credentials below to log in. You need to have cookies enabled to log in.

Login

Forgotten your password? Get a new one: Set new password

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

constants:logic:start [2015-01-08 15:15 SLT]
sei created
constants:logic:start [2015-07-14 09:07 SLT] (current)
sei Typo.
Line 1: Line 1:
 ===== Logic constants ===== ===== Logic constants =====
  
-The logic constants are the integer constants ​**''​TRUE''​** ​and **''​FALSE''​**. While the constant ​**''​TRUE''​** ​has the value 1, in general any integer value different to 0 will serve as a truth value of //true.//+The logic constants are the integer constants ​$ct[TRUEand $ct[FALSE]. While the constant ​$ct[TRUEhas the value 1, in general any integer value different to 0 will serve as a truth value of //​true// ​(see $lty[Boolean]).
  
 ^ Name ^ Value ^ ^ Name ^ Value ^
-| [[constants/FALSE]] | 0 | +$lct[FALSE] | 0 | 
-| [[constants/TRUE]] | 1 |+$lct[TRUE] | 1 |
  
-**''​TRUE''​** ​and **''​FALSE''​** ​are special in that, unlike all other constants, neither of them can be prefixed by a minus sign in either the globals section or after a typecast, for example:+$ct[TRUEand $ct[FALSEare special in that, unlike all other constants, neither of them can be prefixed by a minus sign in either the globals section or after a typecast, for example:
  
 <code lsl2> <code lsl2>
Line 25: Line 25:
 ==== See also ==== ==== See also ====
  
-  * [[types/Boolean]] type+  * $lty[Boolean] ​values