>#DEFINE TaxAmount _0lO1Ol >#DEFINE InvoiceSubTotal _0lOlOl >#DEFINE TaxPercentage _0lO1O1 > >* At runtime, set the values to whatever you want, >* or get a return value from a function, or pass them in as parameters, ... >InvoiceSubTotal = 25 >TaxPercentage = 0.12 > >TaxAmount = InvoiceSubTotal * TaxPercentage > >?TaxAmount && 3 >>
#DEFINE TaxAmount _0lO1Ol #DEFINE InvoiceSubTotal _0lOlOl #DEFINE TaxPercentage _0lO1O1 CLEAR * At runtime, set the values to whatever you want, * or get a return value from a function, or pass them in as parameters, ... InvoiceSubTotal = 25 && Doesn't this equate to _0lO1Ol = 25 ? _0lO1Ol && but this generates an error TaxPercentage = 0.12 && Doesn't this also equate to _0lO1Ol = 25 ? _0lO1Ol && but this generates an error TaxAmount = InvoiceSubTotal * TaxPercentage && Shouldn't this equate to _0lO1Ol = _0lO1Ol * _0lO1Ol && or expand to _0lO1Ol = .12 * .12 ? taxamount ?invoicesubtotal ?taxpercentage ? _0lO1Olbut the last four lines print the values assigned. If each constant is assigned the same value (_0lO1Ol), why do invoicesubtotal and taxpercentage have different values when it comes time to print them?