Conditional Event not triggered when variable updated

Yes, you are correct.

According to Unable to use execution.setVariable() in listener inline script - #2 by hassang

You’ll want to use task.execution.setVariable