I'm trying to run a very simple script that requests a numerical input from the user. Unfortunately, I cannot perform numerical operations such as subtract and divide on the returned value. Am quite new to jsl, so I must be doing something wrong that must be very simple to correct. the error message is:
"Cannot convert argument to a number [or matrix] in access or evaluation of 'Divide', minfeat_abs/ /*###*/1000/*###*/"
Any help would be greatly appreciated. Have been banging away at this for hours.
Please see the script below:
win = New Window( "Feature Depth" ,
<<Modal,
<<Return Result,
Text Box( "Input Min Feature Depth" ),
minfeat_abs = Number Edit Box( 4 ),
);
minfeat = -minfeat_abs/1000;