logic
module reference
index
- Check for inequality.
- Check for equality.
- Logical AND.
- Cast value to bool.
- Check for equality.
- Logical NOT.
- Check for inequality.
- Logical OR.
details
- Check for inequality.
(!= a b [c]…)
(not-eq a b [c]…)
true
if types or values of any two arguments are different. - Check for equality.
(== a b [c]…)
(eq a b [c]…)
true
if the types and values of all arguments are equal. - Logical AND.
(and a b [c…])
- Cast value to bool.
(bool a)
false
if a isfalse
,nil
or0
,true
otherwise. - Check for equality.
(== a b [c]…)
(eq a b [c]…)
true
if the types and values of all arguments are equal. - Logical NOT.
(not a)
- Check for inequality.
(!= a b [c]…)
(not-eq a b [c]…)
true
if types or values of any two arguments are different. - Logical OR.
(or a b [c…])