Hi,
Excuse me if this is a newbie; its an area I've never used before.
Can I create a formula that I can do a binary test on?
If I create (pseudocode) formula @PF_Glass as:
(tbl.partnumber >= 100016 and tbl.partnumber <=1000018) or tbl.partnumber = 1000020 or tbl.partnumber = 1155020
or (tbl.partnumber >= 1900000 and tbl.partnumber <= 1975125) or tbl.partnumber = 1976125
or (tbl.partnumber >= 1977320 and tbl.partnumber <= 1999050) or (tbl.partnumber >= 4904030 and partnumber <= 4999025)
or (tbl.partnumber >= 6915020 and tbl.partnumber <= 6980020)
Can I then create @Specialty?:
tbl.productgroup like 20% and not @PF_Glass
Do I need to show any kind of precedence?
Also, can I then test these to set a commission rate?:
global numbervar CommRate;
if Salesperson = 'Bob' and @PF_Glass then CommRate := .03
else if Salesperson = 'Bob' and @Specialty then CommRate := .025
else CommRate := 0