CA PAM::. Using Run JavaScript Operator to Convert a String to Integer

File uploaded by TMACUL Champion on Jan 18, 2017
Version 1Show Document
  • View in full screen mode

A Little example 

 

How to use "Run JavaScript" Operator -  Convert a String to Int

 

 

 

 

 

 

 

var vString = "1";
var vFloat = parseFloat(vString);
var vInt = parseInt(vString, 16);

if (Process.String = undefined)
{
Process.Null = 1;
}

Process.String = vString;
Process.Float = vFloat;
Process.Int = vInt;


Process.Int = Process.Int +1;

Process.backToString = Process.Int.toString();

Attachments

Outcomes