Returns the number of parameters and multi-choice values that matches a predicate expression within the active configuration. The predicate expression is defined using the ActiveParameter() function.
int ParameterOcc(bool predicateExpression)
predicateExpression |
The expression to evaluate for each parameter to decide if it should be counted or not. |
Example
ParameterOcc(ActiveParameter("Value") = "/")
Returns the number of parameters with the value "/" in active configuration.
ParameterOcc(ActiveParameter("type") = "bool" && ActiveParameter("Value") = "Yes")
Returns the number of bool parameters and multi-choice values that are selected.
Remarks
This method ignores multi-choice parameters and instead loops through their the multi-choice values which are regarded as Boolean parameters.