Studio ASSIGN action ignoring IF condition for string comparison

I have a Studio script where an IF action checks {{session.customFields.status}} == 'active'. It evaluates to true, but the subsequent ASSIGN action setting {{session.customFields.flag}} to 1 never fires. The debug log shows the condition passing, yet the variable remains null downstream. Am I missing a syntax quirk in the expression builder?