Mike -
1) You wanted to do something like this:
Locals.nValue=(Locals.Compare>5) ? 1,Locals.sString = "Yes" : 2, Locals.sString = "No"
You can do this like this:
Locals.nValue=(Locals.Compare>5) ? (Locals.sString = "Yes", 1) : (Locals.sString = "No", 2)
By using the parethesis, the parser assumes that last element in the list is the final value to be "returned".
2) There is no way to do nothing in a conditional assignment. You wanted to do this:
Locals.nValue=(Locals.Compare>5 ? 1 : NOTHING
You have to assign the orginal value back to the target, like this:
Locals.nValue=(Locals.Compare>5) ? 1 : Locals.nValue
Scott Richardson (NI)
Scott Richardson
https://testeract.com