It's not a major issue but it's caused me enough confusion to report this. The documentation of the use of the ternary operator is inconsistent as sometimes it is
Code:
x := foo > bar ? true : false ; correct use
and at other times is
Code:
x := foo > bar ? false : true ; incorrect use
It crops up from place to place in examples:
Quote:
The ternary operator is also a good candidate:
Code:
ProductIsAvailable := (Color = "Red")
? false ; We don't have any red products, so don't bother calling the function.
: ProductIsAvailableInColor(Product, Color)
though the description of the ternary operator itself is correct:
Quote:
For example, var := x>y ? 2 : 3 stores 2 in Var if x is greater than y; otherwise it stores 3
Many thanks