Conditionals
mq supports standard conditional operations through the following functions:
and(a, b)
,a && b
- Returns true if botha
andb
are trueor(a, b), a || b
- Returns true if eithera
orb
is truenot(a), !a
- Returns true ifa
is false
Examples
# Basic comparisons
and(true, true, true)
true && true && true
# => true
or(true, false, true)
true || false || true
# => true
not(false)
!false
# => true