Functions¶
-
bool(value)¶ Parameters: value (any basic type) – The value to convert to a boolean Return type: TRUEif the value is truthy, orFALSEif it is falseyConverts 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 tovec256().