I’m trying to set a flag in a snippet and branch based on it.
ASSIGN [IsVIP] = true
IF [IsVIP] == “true”
The flow always goes to the else branch. I’ve checked the variable scope and it’s set to session. The API call returns 200, but the logic just isn’t sticking. Am I missing a type cast or is there a delay in variable resolution? Here’s the snippet block:
[SnippetCode]
ASSIGN [IsVIP] = true
LOG "VIP Status: " + [IsVIP]
[/SnippetCode]
The log shows “VIP Status: true” but the IF fails. What am I missing?