CX_BOOLEAN
Class hierarchy
- CX_CLASS
- CX_BOOLEAN
Description:
This class represents the truth value in system. A truth value is a value which can be either "Yes" (= TRUE) or "No" (= FALSE). Thus it can indicate, for example, whether a certain condition is fulfilled or not. The following values are used for these two conditions:
Status | Value |
---|---|
TRUE | 1 |
FALSE | 0 |
Code example:
In dem Beispiel-Programm wird geprüft, ob die Zahl "1,4" gleich Null ist.
Var(num) // erzeuge die Zahl
CreateTransObject(CX_NUMERIC) -> num
"1,4" num Put
num Call(IsZero) // teste, ob die Zahl gleich Null ist
Das Ausführen dieses Skriptes erzeugt ein Objekt CX_BOOLEAN mit dem Wert "0" (="nein"), da die Zahl ungleich Null ist.
This class has neither functions nor data fields.