Library "multi_conditions_matrices"
: facilitate including multiple AND / OR conditions to a script such as two entry / exit inputs groups.
method addConditions(conditions, conditionPair)
Helper to append conditions to a matrix<bool> condition array
Namespace types: matrix<bool>
Parameters:
conditions (matrix<bool>)
conditionPair (array<bool>): array<bool> A condition pair [enabled, condition], an input can be passed directly to enable
method check(conditions, operatorAnd)
check several condition within given operator
Namespace types: matrix<bool>
Parameters:
conditions (matrix<bool>)
operatorAnd (bool): bool true if the operator between condition is AND (default OR)
Returns: bool Evaluates conditions
isWeekend()
isNightSignal(nightHour, morningHour, timezone)
Parameters:
nightHour (int)
morningHour (int)
timezone (string)