Syntax
#if expression
source lines
#else
fallback lines
#endifDescription
An open conditional block may contain one #else after its tested branches. It selects its lines when the parent is active and all previous branches were skipped.
Both receipt formats show the amount due. Define ITEMIZED to include the components.
Example
PROCEDURE Main()
LOCAL nGoods := 145
LOCAL nDelivery := 12
#ifdef ITEMIZED
QOut( "Goods", nGoods )
QOut( "Delivery", nDelivery )
#else
QOut( "Delivery included" )
#endif
QOut( "Amount due", nGoods + nDelivery )
RETURNOutput