Trying to figure sales tax when counties have different tax rates....
I'm getting a "boolean expected here" (??), fairly new to if-then-else statements. What have I got wrong here? Writing in Crystal Syntax
if {oelinhst_sql.item_no} in ["REC001", "REC001A"] and
{020708_counties.COUNTYNM_}="Mecklenburg"
then (34.95 * .0725)*{oelinhst_sql.qty_ordered}
else if {020708_counties.COUNTYNM_} <> "Mecklenburg"
then (??)(34.95 * .0675)*{oelinhst_sql.qty_ordered} and
if not ({oelinhst_sql.item_no} in ["REC001A", "REC001"]) and
{020708_counties.COUNTYNM_}="Mecklenburg"
then ({oelinhst_sql.unit_price} * .0725)*{oelinhst_sql.qty_ordered}
else if {020708_counties.COUNTYNM_} <> "Mecklenburg"
then ({oelinhst_sql.unit_price} * .0675)*{oelinhst_sql.qty_ordered}
I'm getting a "boolean expected here" (??), fairly new to if-then-else statements. What have I got wrong here? Writing in Crystal Syntax
if {oelinhst_sql.item_no} in ["REC001", "REC001A"] and
{020708_counties.COUNTYNM_}="Mecklenburg"
then (34.95 * .0725)*{oelinhst_sql.qty_ordered}
else if {020708_counties.COUNTYNM_} <> "Mecklenburg"
then (??)(34.95 * .0675)*{oelinhst_sql.qty_ordered} and
if not ({oelinhst_sql.item_no} in ["REC001A", "REC001"]) and
{020708_counties.COUNTYNM_}="Mecklenburg"
then ({oelinhst_sql.unit_price} * .0725)*{oelinhst_sql.qty_ordered}
else if {020708_counties.COUNTYNM_} <> "Mecklenburg"
then ({oelinhst_sql.unit_price} * .0675)*{oelinhst_sql.qty_ordered}