Got a script that pulls customer data via GetRESTProxy. The response comes back fine in the trace, but the downstream IF action keeps evaluating to false even when the JSON clearly has the flag set.
Here’s the flow:
GetRESTProxysaves result torest_responseASSIGNparses the body:
customer_status = rest_response.body.status
IFchecks the value:
IF (customer_status == "premium")
The trace shows customer_status is a string "premium". The condition should pass. It doesn’t. The script jumps to the else branch every time.
I’ve tried wrapping the comparison in str() and checking for nulls. Nothing works. Is the ASSIGN action stripping quotes or converting the type unexpectedly? Or is there a hidden whitespace issue in the REST body?
{
"status": "premium",
"id": 12345
}
Looking at the raw trace, the value looks clean. What am I missing?