User Tools

Site Tools


hpl2:amnesia:script_language_reference_and_guide:types

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
hpl2:amnesia:script_language_reference_and_guide:types [2012/12/28 02:32]
thegreatcthulhu old revision restored (2012/12/28 02:27)
hpl2:amnesia:script_language_reference_and_guide:types [2013/01/03 13:00]
thegreatcthulhu
Line 119: Line 119:
  
 The ''​bool'' ​ type is used to represent the values ''​true'' ​ and ''​false''​. Variables of ''​bool'' ​ type are useful //as indicators//​. You can use them to represent binary states (for example, on/off switches), or indicate if some event happened or not. You can use them as return values of functions, to indicate the success or failure of an operation. \\ The ''​bool'' ​ type is named after George Boole, an English mathematician,​ philosopher and logician, who first defined an algebraic system of logic in the mid 19th century. The ''​bool'' ​ type is used to represent the values ''​true'' ​ and ''​false''​. Variables of ''​bool'' ​ type are useful //as indicators//​. You can use them to represent binary states (for example, on/off switches), or indicate if some event happened or not. You can use them as return values of functions, to indicate the success or failure of an operation. \\ The ''​bool'' ​ type is named after George Boole, an English mathematician,​ philosopher and logician, who first defined an algebraic system of logic in the mid 19th century.
 +
 +For more info about the operations available for the ''​bool''​ type, see [[hpl2:​amnesia:​script_language_reference_and_guide:​control_flow_-_conditional_statements#​comparison_operators|Comparison Operators]] and [[hpl2:​amnesia:​script_language_reference_and_guide:​control_flow_-_conditional_statements#​using_logical_operators|Using Logical Operators]].
  
  
hpl2/amnesia/script_language_reference_and_guide/types.txt ยท Last modified: 2013/01/03 14:18 by thegreatcthulhu