_IsValueInArray (Integer, Array)
Checks if a specified integer value is equal to one of the integer values in an array.
Syntax
_IsValueInArray(valueToTest,valueList)
Parameters
Parameter | Definition | Data type |
---|---|---|
valueToTest |
Integer value with which to compare the values in the array. |
Integer |
valueList |
Array of integer values against which to compare the value specified in the valueToTest parameter. |
Array of Integer values |
Returns
True or False (Boolean), indicating whether the integer value to test is in the array of integer values.
Notes
The valueToTest value is compared to each element of the array. If the value is equal to at least one element of the array, the method returns True. Otherwise, the method returns False.
Example
In this example of a global condition, when a user indicates in the AE form that a patient died as the result of an adverse event, a form called Death is enabled. Because the AE form is a common form that does not have reference to specific visits, the Outcome field from the AE form is collected in a mapping.
_IsValueInArray(“Death”, RulesLS.DSRules.Outcomes.Values)
This condition returns true or false. When the condition is applied to the Death form, the Death form appears when the expression is true.
Parent topic: _IsValueInArray