boolnum Reference

Converts the input to a boolean value.

boolnum

Arguments

val [number]

Optional

Value to be converted to a boolean

Inlets

val [number]

Value to be converted to a boolean

Outlets

out1 [number]

Outputs 1 for non-zero inputs and 0 if the input is zero

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

hot [bool] (default: false)

Trigger computation on all inlets.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

reset [bang] (default: 0)

Banging this attribute will reset the object to its default state.

val [number]

Value to be converted to a boolean

See Also

Name Description
boolnum~ Converts the input to a boolean value.
cond Conditional operator
eq Equals operator
and logical AND operator
or Performs a logical OR