In this case, it works (parsed both ternary_expression and parenthesized_expression).
Second example:
FOR EACH Customer NO-LOCK BY IF Customer.Balance > 10000 THEN 1
ELSE (IF Customer.Balance > 1000 THEN 2 ELSE 3) BY Customer.SalesRep:
DISPLAY Customer.SalesRep Customer.Balance Customer.Name.
END.
Here, the first IF function is not parsed at all (no ternary_expression).
However, the second IF function is parsed as ternary_expression yet not as parenthesized_expression, even though there are parentheses around it.
First example:
In this case, it works (parsed both
ternary_expression
andparenthesized_expression
).Second example:
Here, the first IF function is not parsed at all (no
ternary_expression
).However, the second IF function is parsed as
ternary_expression
yet not asparenthesized_expression
, even though there are parentheses around it.