Hi Barry, well I'd guess numarray would need an array of numbers to be returned instead of just a single individual number.
In Javascript you can make an array by using [], like [ 'a', 'b', 'c' ] . So try changing the onExecute part to this:
this.setOutputData(0, output.length == 0 ? [0] : [1]);
- Michael
|