type/boolean_function
test for an expression of type boolean_function
Calling Sequence
Parameters
Description
Examples
type(expr::anything, 'boolean_function')
expr
-
any expression
The call type(expr, boolean_function) returns true if expr is of type boolean_function.
The type boolean_function is defined as an object of type function whose zeroth operand is one of the global symbols And, Or, Not, Xor, or Implies.
Note that this type only checks the top level and does not perform any type checking on subexpressions.
type⁡xandy,boolean_function
false
type⁡And⁡x,y,Or⁡a,b,boolean_function
true
type⁡x⇒y⊻z,boolean_function
See Also
type,boolean
type,function
type,truefalse
type/mathfunc
Download Help Document