or

Description

When using or to connect two expressions, the entire condition evaluates is 'true', if at least one of the expressions is 'true'.

Example

Say, a document is needed for a person who either lives in Germany or pays taxes in Germany.

p is Person
p.tax_domicile = de 
or
p.domicile = de

With these expressions, connected by or, attached to a document, that document will only appear in the case for client Peter Müller if he lives in Germany, but works and pays taxes in France. It will also appear in the case for Valérie Jupeau, who works in Germany, and pays taxes there, but lives in Basel.

However, it will not appear in the case for Claudia Dunkelmann, a German citizen who works, pays taxes, and lives in Spain.

Last updated