Piccola / Interfaces / Boolean Index

Boolean

Standard Bindings

A boolean provides the following standard bindings:

returnsservicedescription
Booleanthis & aBooleanStrict And. Returns this and aBoolean; aBoolean is evaluated.
Booleanthis | aBooleanStrict Or. Returns this or aBoolean; aBoolean is evaluated.
Booleanthis && aBooleanTODO Lazy And. Returns this and aBoolean; aBoolean is evaluated only if this is false.
Booleanthis || aBooleanTODO Lazy Or. Returns this or aBoolean; aBoolean is evaluated only if this is true.
Booleanthis == aBooleanEqual. Returns true if this is equal to aBoolean, false otherwise.
Booleanthis != aBooleanNot Equal. Returns true if this is not equal to aBoolean, false otherwise.
Boolean! thisNot. Returns true if this is false, false otherwise.
Booleanthis.not()Not. Returns true if this is false, false otherwise.
Booleanthis.not()Not. Returns true if this is false, false otherwise.
Formthis.select(cases)Selection. Returns case.true if this is true, returns case.false if this is false.

JPiccola

In JPiccola, a boolean additionally provides the following bindings:

return kindservicedescription
PeerpeerThe peer object represented by this form.
Classthis.getClass()Returns the class of this.