Documentation

Boolean Operators

The following is the documentation for boolean operators.

And

Syntax: x = a && b

Description: Sets x to true if a and b are true, else sets x to false.

In many languages (not all, e.g. not VB.NET) this operator is short-circuiting, meaning b is not evaluated if a is false. In this language, both are evaluated. Do not use mutating functions nested in the operands as this will cause differing behavior when the language is short-circuiting.

Or

Syntax: x = a || b

Description: Sets x to true if a or b are true, else sets x to false.

In many languages (not all, e.g. not VB.NET) this operator is short-circuiting, meaning b is not evaluated if a is true. In this language, both are evaluated. Do not use mutating functions nested in the operands as this will cause differing behavior when the language is short-circuiting.

Not

Syntax: x = !a

Description: Sets x to false if a is true, and true if a is false.

Contact Information

We would be more than happy to help you. Our opening hours are 9–15 (CET).

[email protected]

📞 (+47) 93 68 22 77

Nils Bays vei 50, 0876 Oslo, Norway

Copyright © 2018-24 progsbase.com by Inductive AS.