FilterList
Use this function to create a new list which is filtered in a specified condition. This function is only available in a procedure as part of the SET VARIABLE command.
where:
- VariableName is the name of a list variable.
- Condition is a condition that evaluates to a TRUE/FALSE (1/0) result. It can also be an Attribute-based filter (if the list contains objects that have Attributes, for example, a list of users, user groups, or symbols).
Copy
Syntax example
CREATE VARIABLE X[] AS STRING
CREATE VARIABLE Y[] AS STRING
SET VARIABLE X = CreateList ("SYMBOLS", "DATABASE", "Accounts", "TrialBal###")
SET VARIABLE Y = FilterList ("X", "[[SYMBOL, ZGPNativeCurrency, THIS]]==CAD'')