Hello everybody,
I have a small question about how to split an item into 2, and route them based on a label. Please find attached a basic example model where the Separator - Send To Port Custom Code is still unfinished:
Object item = param(1); Object current = ownerobject(c); /**Custom Code*/ if (item.Type == 1) { return 1; // return both splits to port 1; } else { // send 1 split to port 2; // & send the other split to port 3; }
I hope it makes sense what I am trying to do :)
Thanks for your help!
Ana.