# Conditional Event not triggered when variable updated

**URL:** <https://forum.camunda.io/t/conditional-event-not-triggered-when-variable-updated/37024>\
**Category:** Discussion & Questions\
**Tags:** process-engine\
**Created:** [April 18, 2022, 10:11pm UTC](https://forum.camunda.io/t/conditional-event-not-triggered-when-variable-updated/37024 "2022-04-18T22:11:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![GotnOGuts](https://forum.camunda.io/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@GotnOGuts](https://forum.camunda.io/u/GotnOGuts)\
**Post date:** [April 19, 2022, 6:11pm UTC](https://forum.camunda.io/t/conditional-event-not-triggered-when-variable-updated/37024/4 "2022-04-19T18:11:56Z")

</div>

Yes, you are correct.

According to [Unable to use execution.setVariable() in listener inline script - #2 by hassang](https://forum.camunda.io/t/unable-to-use-execution-setvariable-in-listener-inline-script/7372/2)

You’ll want to use task.execution.setVariable

---

_[View the full topic](https://forum.camunda.io/t/conditional-event-not-triggered-when-variable-updated/37024)._
