Boolean or truth values

Revision as of 17:38, 26 August 2015 by DKontotasiou (Talk | contribs) (Created page with "Category:Analytica User Guide <languages /> <translate> Analytica User Guide > A '''''Boolean '''''or '''''truth '''''value can be '''True '''and '''False''', or, equ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Analytica User Guide >

A Boolean or truth value can be True and False, or, equivalently, the number 1 or 0. For example:

False OR True True
1 AND 0 False

:1 OR 0 True

It actually treats every nonzero number as True. For example:

2 AND True True

Boolean values are represented internally as the numbers 1 and 0. By default, a Boolean result displays as 0 or 1. To display them as False or True, change the number format of the variable to Boolean (see Number formats).

See Also

Date and Time Values <- Boolean or truth values -> Text values
Comments


You are not allowed to post comments.