The Exist property determines if the element of an associative array exists.
// Associative array of integers
// indexed on strings and with duplicates
aaIDPerCustomer is associative array of int
// Add the identifier of customer "A"
aaIDPerCustomer["A"] = 55
// Add the identifier of customer "B"
aaIDPerCustomer["B"] = 321
IF aaIDPerCustomer["A"]..Exist = True THEN
Info("At least one element A exists")
END
Syntax
<Result> = <Element used>.Exist
<Result>: Boolean
- True if the specified element exists (is not empty),
- False otherwise.
<Element used>: Element of an associative array
Name of element to use (element of associative array).
Remarks
The
Exist property determines if the element of an associative array exists.
- For an associative array without duplicates, the Exist property is set to True if the element exists.
- For an associative array with duplicates, the Exist property is set to True if at least one element exists.