<< Click to Display Table of Contents >>
Choose |
Choose(Index, Values)
Returns one of the items specified in Values, based on the Index parameter, starting in 0 (zero). This method returns Null in case the value of Index is less than 0 (zero) or greater or equal to the number of values in Values. This method is available in Links, as well as in scripts.
NOTE |
This method does not propagate values' quality nor timestamp. If a Link contains the expression Choose(TagIndex, Tag1.Value, Tag2.Value, Tag3.Value), the result is the selected value, but with Good (192) quality and the current timestamp. To preserve this information, users must specify only the object, such as Choose(TagIndex, Tag1, Tag2, Tag3). |