(({TRIGGER.VALUE}=0 and {Int:snmptrap["(linkUp|linkDown)"].str(linkDown)}=1) or
({TRIGGER.VALUE}=0 and {Int oper:ifOperStatus[{#IFDESCR}].last()}<>1)) or
(({TRIGGER.VALUE}=1 and {Int:snmptrap["(linkUp|linkDown)"].str(linkDown)}<>1) or
({TRIGGER.VALUE}=1 and {Int oper:ifOperStatus[{#IFDESCR}].last()}=1))