Conditionals
mq supports standard conditional operations through the following functions:
and(a, b),a && b- Returns true if bothaandbare trueor(a, b), a || b- Returns true if eitheraorbis truenot(a), !a- Returns true ifais false
Examples
# Basic comparisons
and(true, true, true)
true && true && true
# => true
or(true, false, true)
true || false || true
# => true
not(false)
!false
# => true