Arrays in 5.2 & 8.2


We are in process of migrating from 5.2 to 8.2.

We would like to know how the below condition will work in 5.2, so that we can re-write same in 8.2

If Is(Trim((Exec_Proc_2_Out/StatusScript[]) ) = “XYZZZZ” )

Appreciate your help


Hi Vasmi,

I’m not sure I understand the question, the syntax you mentioned is from 8.2, so why do you need it converted to 5.2.5 and then re-write it again in 8.2.2?

As for the condition itself, I’m not sure if you can use it without specifying an index for the StatusScript[] array as there are multiple values expected and you’re comparing it with just one value.
When I tried a similar condition, in version 8.2.2, I get this: If Is(Trim((Exec_Proc_2_Out/StatusScript[index]) ) = “XYZZZZ” ), where “index” is an expression that you’re expected to define.
In run-time it seems to take the first value, if no index was specified.