Lizenz wählen
DE EN FR ES IT CZ
Zurück Nach oben

Toggle condition.

  • #1, von ke4 Uhr vor 12 Jahren Zitieren
    Hi,

    i'm just wondering what can i do with the new toggle condition option?
  • #2, von bobby23 Uhr vor 12 Jahren Zitieren
    It sets the condition to the opposite state
    If the condition was True it will change it to False and vice versa
  • #3, von afrlme Uhr vor 12 Jahren 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, von ke4 Uhr vor 12 Jahren Zitieren
    Ou, thanks razz