output int based on input inlet

jamesson's icon

Is there an object anybody knows of, native or third-party, which takes a number of intlets as argument and outputs an int based on which inlet data arrived into? I have been making messages containing ints just to tag stuff more often than I'd like. I could do javascript, but that too seems a mite superfluous

Many thanks in advance

Joe

jamesson's icon

perfect ty