Just wanted to verify that the Ternary conditional statement is not available in PAM.
variablename = (condition) ? value1:value2
No, that syntax is not available in PAM. You can achieve the same thing with an if..then..else statement such as:
ternary comparisons definitely work, the accepted answer is not correct.
The version of rhino embedded in pam does not support a lot of the newer prototype methods on the native js objects but like 90% of them can be polyfilled with a user resource library, including indexOf.
Yes. Ternary comparisons works in PAM.
I've created sample process with Run Java Script operator to execute the following code.
Process.val = (Process.x==0) ? Process.a="New Value":Process.b="New Value"
Retrieving data ...