Toggle condition.

  • #1, by ke4Saturday, 23. August 2014, 12:05 6 years ago
    Hi,

    i'm just wondering what can i do with the new toggle condition option?

    Key Killer

    810 Posts


  • #2, by brut69Saturday, 23. August 2014, 13:16 6 years ago
    It sets the condition to the opposite state
    If the condition was True it will change it to False and vice versa

    Great Poster

    263 Posts

  • #3, by afrlmeSaturday, 23. August 2014, 13:18 6 years ago
    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
    1
    2
    3
    4
    5
    6

    now:
    toggle condition
    1
    2

    ...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.

    Imperator

    6842 Posts

  • #4, by ke4Saturday, 23. August 2014, 13:29 6 years ago
    Ou, thanks razz

    Key Killer

    810 Posts

Write post