Let's say I want to send items to port 1 if itemtype = 23 but to first available of ports 2,3,4 if itemtype = 35.
I know I can write a bunch of if (opavailable(current,2) and getitemtype(item)==35) return 2;
else if etc.etc.etc.
But I was wondering if there is a trick to do it simpler using some type of "return 0 from 2,3,4" ?
Thanks,