builtin functions, ifstatus,

Hi,
Functionality i need is to notify me if OperStatus of some interface changes from up to down.
my test probe base on
if(array_element(oid_column(“1.3.6.1.2.1.2.2.1.8”), array_find(oid_column(“1.3.6.1.2.1.2.2.1.2”),“GigabitEthernet3/1”))=“down (2)”, “”, “Interface GigabitEtthernet3/1 down”)
and this is don’t work ..any one know what is wrong here?
maybe there is builtin function for checking this?

what is for “Porobe Port” in Service card ? maybe i can use this place to list interfaces i want to monitor?
how i can change GigabitEthernet3/1 to use some variable puted somewhere else on device properties?

i know that my language is quite poor to understand but u know my needs.

i have lot of devices and can’t just create tests for all index numers to fit all device interfaces so this should be quite flexible

hmm why if(oid(“1.3.6.1.2.1.2.2.1.8.7”)=0, “”, “downnnnn”) return me “” when
snmpget switch 1.3.6.1.2.1.2.2.1.8.7 return INTEGER:down(2) ?

is this some kind of bug in the dude?

maybe there is a function like interface_operational_status(“GigabyteEthernet3/1”) which returns true or false?
i saw on this forum some kind of function definition but don’t know where to define function
Where i can find list of builtin functions?