How would I use a JSON object within an if…then…else condition?
In my case I'm iterating across a JSON object, which has four object elements. The loop runs four times as expected. Within the loop I'm trying to evaluate whether or not the value of the key "isMine" is true or not. I tried this as follows:
Operand1: ${contracts_json}[${contractLoop_counter}].isMine
Condition: Equals
Operand2: true
Unfortunately Operand1 always contains the whole ${contracts_json} object and not just one of the four elements. Therefore the condition never evaluates to true. How should I evaluate a specific element? I also tried setting Condition1 to ${contracts_${contractLoop_counter}}.isMine, but this does not work either.
Any suggestions?