HadesLang Doc
Search…
Logical operators

Inversion

The inversion operator (!) returns true if the operand is false, and false if the operand is true:

Example

1
!true //false
2
!false //true
Copied!

Logical and

The and or && expression determines if two values are both true. It returns true if both values are true and false otherwise:

Example

1
true && false // false
2
true and true // true
Copied!

Logical or

The or or ||expression determines if either of the values (or both) are true. It returns true if one (or both) of the values are true.

Example

1
false or false // false
2
true || false // true
Copied!
Last modified 2yr ago