FoxPro:
Iif(lNoDelete = .T., '-- ', '')
C#:
(NoDelete == true ? "-- " : "")
Notes:
1. The '?' comes first then ':' which makes sense because we're doing a Boolean test up front.
2. Leave the parens to avoid unwanted results when embedded in string building code.
Last edited: