Can I use logicals? For example, if pp>10 and pp < 20 then do x?
You can do logical but not complex expressions for your example you would need
if pp<=10 then skip next rule
if pp<20 the goto “myroutine”
// do other stuff here if rules do not match
goto “done”
label “myroutine”
// do stuff here
label “done”