binEnum
Description
This function, whose name stands for "binary enumeration", takes a list of booleans, and returns the index (starting at 1) of the first parameter that evaluates to true. This can be a very handy tool to convert bits into an integer code to drive the Component Styles feature.
Syntax
binEnum( boolean1, boolean2, ... )
Examples
binEnum(
0
,
1
,
0
)
//returns 2
binEnum(
0
,
false
,
15
,
0
,
23
)
//returns 3 (the index of the 15 - any non-zero number is "true")