Page 1 of 1

New Function

Posted: Thu Dec 09, 2010 9:58 pm
by itsc
How to write new function in list of functions and do not use build-in functions or maybe it possible to change functionality of build-in functions?

Re: New Function

Posted: Wed Dec 15, 2010 2:02 am
by lebowski
what would you have the self built function do?

Re: New Function

Posted: Wed Dec 15, 2010 11:39 am
by itsc
I need to find all indexes of elements in array, that match some criteria, and I used the function array_find(), but it returns only one first found index. How make it work, like I need?

Re: New Function

Posted: Wed Dec 15, 2010 5:48 pm
by lebowski
Yeah probably a question for gsandul but there is no while or loop function so I don't know how you would make it work past the first match.

Re: New Function

Posted: Thu Dec 16, 2010 9:33 am
by gsandul
Yeah probably a question for gsandul
:lol:
But you are right "no while or loop function" in The Dude. And no way to find all indexes of elements in array.

Re: New Function

Posted: Fri Dec 17, 2010 9:45 pm
by lebowski
You could check out trying to call an external with a probe...

Just search the dude forum for
snmp execute