Hi,
I want to execute a rule based on two rules previously defined, these two rules are inputs type rules, and I want the rule to be executed when one or both of the previous rules are active.
I have this configuration but it only works when one of the rules is present, but not both, any idea?
looks to me i am missing an "or" command
if inputs.BONOP and inputs.BONOP.amount > 0:
result = (9.75/100) * (GROSS - BONOP)
elif inputs.VIA and inputs.VIA.amount> 0:
result = (9.75/100) * (GROSS - VIA)
else:
result = (9.75/100) * GROSS
Thanks