I’m trying to parse a boolean flag from a GetRESTProxy response in a CXone Studio snippet and branch based on it. The external endpoint returns {"is_active": true}. I have an ASSIGN block that sets ${is_active} using the JSON path $.is_active. The variable looks correct in the debug view, but the subsequent IF block IF (${is_active} == true) always evaluates to false, even when the value is clearly true. Here is the snippet structure:
<ASSIGN target="is_active" value="${GetRESTProxy_Response.body}.is_active" />
<IF condition="${is_active} == true">
<SET target="route" value="premium" />
</IF>
The logic works fine with string comparisons, but booleans seem to behave differently. Is there a specific way to cast or reference this in the IF condition? I’ve tried ${is_active} == 'true' and it still fails.