Mixin: Check_Bool

Eleven~ Check_Bool

Methods to check Boolean expressions, cast to bool if needed, return bool node.

Source:

Methods


and(node)

[ 'and' a b ] casts to bool.

Parameters:
Name Type Description
node Array

to check.

Source:

bool(node)

[ 'bool' value ] expects boolean value.

Parameters:
Name Type Description
node Array

to check.

Source:

not(node)

[ 'not' b ] casts to bool.

Parameters:
Name Type Description
node Array

to check.

Source:

or(node)

[ 'or' a b ] casts to bool.

Parameters:
Name Type Description
node Array

to check.

Source: