Difference between revisions of "Boolean"
From SCAR Divi Manual
(→Description) |
|||
Line 14: | Line 14: | ||
end. | end. | ||
</source> | </source> | ||
+ | |||
+ | ==See Also== | ||
+ | *[[BoolToStr]] | ||
+ | *[[StrToBool]] | ||
+ | *[[StrToBoolDef]] | ||
[[Category:Types]] | [[Category:Types]] | ||
[[Category:Basic Types]] | [[Category:Basic Types]] |
Revision as of 19:11, 26 June 2011
Description
Boolean is a basic type which can hold only 2 values: False (0) and True (1). Conditional code constructs use boolean values to determine what action to perform.
Example
var Value: Boolean; begin Value := True; if Value = True then WriteLn('Value was equal to True') else WriteLn('Value was equal to False'); end.