How To Specify Inlet in JavaScript?

Nov 29, 2009 at 7:07pm

How To Specify Inlet in JavaScript?

Hi – all js tutorials seem to only use one inlet. If I am using more than one inlet, how do I check to see which inlet the data is arriving through?

Thanks.

#46884
Nov 29, 2009 at 7:17pm

You need to query the inlet property which returns a number, the leftmost being inlet 0. Then you can use conditionals or a switch statement.

lh


if (inlet == 0) {
// do stuff
} else if (inlet == 1) {
// do other stuff
} //etc.

#168622
Dec 1, 2009 at 5:25am

nice, thanks.

#168623

You must be logged in to reply to this topic.