/**Custom Code*/ treenode item = parnode(1); treenode current = ownerobject(c); int port = parval(2); string s = numtostring(getitemtype(item)); /*exittime1, entrytime1, die1 are global variables*/ if(stringcompare(s,die1)) { exittime1 = getentrytime(item); } else { entrytime1 = getcreationtime(item); die1=s; }<br>