Forum Discussion

GlennJones1's avatar
GlennJones1
Community Member
10 years ago

If....Then.....Else

Is it possible to add an If...Then...Else statement to a trigger/button?

Or do I need to add two different triggers to a button and play around with variables?

  • JamesPerry's avatar
    JamesPerry
    Community Member

    Is if-then-else functionality something that might be added in the future? Some things I'm working on would be greatly simplified if it were available! I used this functionality frequently in Lectora.

  • Hi James!

    We do not release product details or roadmaps, but you are welcome to share your thoughts with our product development team here.

  • frdricBabin's avatar
    frdricBabin
    Community Member

    Hello,

    I also need this feature because I can't do what I want with several triggers.

    Let's say I have two triggers:

    "Change the state of X to state1 if the state of X is state2"

    and

    "Change state of X to state2 if state of X is state1".

    Well, if I don't use if/else, it doesn't work since the second trigger will overwrite the first one.

    Variables are not something I want to use in this case for other reasons (the main one being that a variable is global to the project).