Trying to set a flow variable based on an API response in . Used an ASSIGN action to set is_premium to true. The next action is an IF block checking is_premium. It always falls to the else branch. I added a debug log and the variable is null. Here is the assignment code:
ASSIGN is_premium = if(response.json.tier == 'gold', true, false)
The API returns valid JSON. Is the scope wrong?