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.