Functions

bool(value)
Parameters:value (any basic type) – The value to convert to a boolean
Return type:TRUE if the value is truthy, or FALSE if it is falsey

Converts a value to a boolean. See Boolean conversion.

vec([value=0])
Parameters:value (integer or vector) – The value to convert to a vector
Return type:vector

Converts a value to a vector of length NDIM. See Vector to vector conversion and Integer to vector conversion.

This function has a variant for each possible vector length from 1 to 256: vec1(), vec2(), vec3(), etc. up to vec256().