Cant understand how to perform logic in gdevelop

Hi, I fail to understand how can I simulate if/else situation in gdevelop :

condition :user click on a checkbox
events:

  • condition : animation number of obj is 0 ( means it is unchecked so check it )
    action: change animation of obj to 1
  • condition : animation number of obj is 1 ( means it is checked so uncheck it )
    action: change animation of obj to 0

It dont work, because it will run both conditions and actions in the sequence.
Since it dont have an else, and I dont think “trigger once” its to fix this, how can I perform this ???

https://wiki.gdevelop.io/gdevelop5/tutorials/how-to-make-togglable-states-with-variables