Im sorry. Confusion still reigns. No mention of this one in the migration guide or the manual, other than if i want to reference the value in a number field I dont ahve to use numberField.getNumber() but can change it to numberField.

Here is my bit of code...

var mTEST=MINKEY ;
var mMIN_BASE=MIN_BASE ;

if (mTEST > mMIN_BASE ) {
mTEST=0;
};

Both MINKEY and MIN_BASE are NUMBER datatypes on the incoming stream.

This gives an error:

Unexpected error :
org.pentaho.di.core.exception.KettleValueException:
Javascript error:
org.mozilla.javascript.NativeNumber at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.addValues(ScriptValuesMod.java:443) at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.processRow(ScriptValuesMod.java:738)
at org.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesMod.run(ScriptValuesMod.java:798)
Caused by: org.pentaho.di.core.exception.KettleValueException:


But if i change it to:

var mTEST=MINKEY+0;
var mMIN_BASE=MIN_BASE+0 ;

if (mTEST > mMIN_BASE ) {
mTEST=0;
};


It works fine.

Why?