CXone Studio ASSIGN action failing to set variable for downstream IF block

I’ve got a Studio snippet that’s supposed to check an HTTP response and branch based on the status code. The logic seems sound, but the variable never gets set, so the IF block always falls through to the else case.

Here’s the setup:

[GetRESTProxy]
url = "https://my-api.com/status"
method = "GET"
result = "restResult"

[ASSIGN]
var:status = "${restResult.statusCode}"

[IF]
condition: "${status}" == "200"
 -> [SUCCESS]
else
 -> [ERROR]

The GetRESTProxy action completes successfully. I can see the response payload in the debug logs. But when I check the value of status right after the ASSIGN, it’s empty. I’ve tried using restResult.response.statusCode and just restResult.statusCode. Neither works.

I’m running this in the CXone sandbox. Is there a specific syntax for accessing JSON properties from a REST proxy result in an ASSIGN action? The docs are pretty vague on the exact path structure.