Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Toggle condition.

  • #1, by ke4 12 years ago Zitieren
    Hi,

    i'm just wondering what can i do with the new toggle condition option?
  • #2, by bobby23 12 years ago Zitieren
    It sets the condition to the opposite state
    If the condition was True it will change it to False and vice versa
  • #3, by afrlme 12 years ago Zitieren
    haha grin

    If you have any actions where you usually just want to swap one condition value to the other or back again then you no longer need to use an if query. Say like toggling a condition to say the menu is active/inactive etc.

    before:
    if condition is true
     change condition false
    else
     change condition true
    end if
    

    now:
    toggle condition
    

    ...it's more of a workflow thing, to save a bit of time here & there. I also wrote a lua script version of this, which is can be found via the script index page of the wiki.
  • #4, by ke4 12 years ago Zitieren
    Ou, thanks razz