E2 toggle?

How can a make something toggle with e2 if the button is non-toggled.

reply fast please because im at the library and don’t have much time.

make the button toggle?


@inputs NotToggled
@outputs Toggled

if (NotToggled) {
  if (Toggled == 1) { Toggled = 0 }
  else { Toggled = 1 }
}

Or



@inputs Button
@outputs A
if(Button & ~Button
     ) {A = !A}


ok thanks!