Trouble getting parseInt() to work

Hello everyone:

I am hoping someone can help me. I am trying to convert a 3 digit hex string to an integer. What am I missing here? This line of code is in my rules file:

keypadnumber = parseInt(mysubmessageparsed.get(2), 16)

But I keep getting this error:

2018-01-21 17:28:51.803 [ERROR] [.script.engine.ScriptExecutionThread] - Rule ‘LT Receive Acknowledge Rule’: An error occurred during the script execution: The name ‘parseInt(,)’ cannot be resolved to an item or type.

It is as though I am not including the right include file or something? Thanks for your help.

I think you need:


Thanks for your help. I tried that, but it did not work. The following did work, however:


Go figure???