Use of onupdated or dmx-on:updated for a Variable

I have a variable sc_aborted which I initially assign a value of 0.

If a server connect aborts, then I assign it the value 1.

When it changes to a 1, then I want to show a modal.

Should I used onupdated or dmx-on:updated on the variable definition to do this?

Or do they do the same thing?

The dynamic event allows you to run dmx actions, while the static is to run only vanilla JavaScript.

1 Like

Then you need to click on Dynamic Events > Updated.

1 Like