Spacing Unary Operators
Categories:
There must be no space between a unary operator and its argument (except for the NOT keyword).
Bad code
IF NOT(Type = Type::Item) THEN
Good code
IF NOT (Type = Type::Item) THEN
Bad code
DiscAmt := - "Discount Amount";
Good code
DiscAmt := -"Discount Amount";
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified October 4, 2024: Merge pull request #249 from Busschers/ErrorHandling-ListOfReferenceText (5e76983)
by Arend-Jan Kauffmann