Skip to content
cicada edited this page Dec 7, 2022 · 7 revisions

title: And permalink: /And/

Logical functions and (&&)

syntax

  • and(condition1 ,.., conditionn)
  • condition1 && condition2

definition

and(condition1 ,.., conditionn) or condition1 && condition2 combines two or more conditions and results in true values if all conditions are true and in false values if any condition is false.

applies to

conditions

The conditions need to match with regard to their domain unit or be void (literals or parameters can be combined with data items of any domain).

since version

5.15

example

attribute condA_and_condB (LDomain) := and(condA, condB);   attribute condA_and_condB (LDomain) := condA && condB;

condA condB condA_and_condB
False False False
False True False
True False False
True True True

LDomain, nr of rows = 4

see also

Clone this wiki locally