Question regarding the writing of a condition...

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey folks!

    I was wondering if there was some way I could write a condition such that one component was required, but two or more were logical OR conditions. As an example, consider this condition with three elements:

    1.) Global Variable=X (always condition)

    2.) Button is clicked
    OR (logical)
    3.) Text is clicked


    As it is, I only know how to author a condition such that all elements in the condition are part of an OR (logical) statement, or all elements in the condition must be met--but not a mixture of both.

    Is there a way to author a condition so that they can be mixed?

    Thank you very much, in advance!


    Most appreciatively...

    RGBreality

    Most appreciatively...

    RGBreality

  • No, but you can just do

    1.) Global Variable=X (always condition)
    2.) Button is clicked
    OR (logical)
    1.) Global Variable=X (always condition)
    3.) Text is clicked

    which accomplishes the same thing, if I understand you right.

    For a list of my achievements, hit up Please login to see this link..com/
    Unless you want to party, then go to Please login to see this link.

  • Hey, Jabob! How are you? What a bionically-fast reply! That did the trick! (I love learning something new about this kick-ass product)

    Thank you yet again, Jacob!


    Most appreciatively...

    RGBreality

    Most appreciatively...

    RGBreality

  • Oh yes! I know how to do that! Make a condition, right click on the condition box to the left and click "Insert" and then it will be two conditions in one! I hope I wasn't too late to answer!

  • Quote from Jacob

    1.) Global Variable=X (always condition)
    2.) Button is clicked
    OR (logical)
    1.) Global Variable=X (always condition)
    3.) Text is clicked


    You should always have immediate conditions above all other ones. I don't think I've ever seen this break the event, but it makes your code clearer for others and is just good practice.

    This should be:

    1.) Button is clicked
    2.) Global Variable=X (always condition)
    OR (logical)
    1.) Text is clicked
    2.) Global Variable=X (always condition)

    :)

    ExtensionView — An MMF2 Extension Database
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!