I want a Condition to check if a variable = 1 OR 5 OR 8 OR 9. I will have about 16 of these conditions, each checking for 3-4 values that vary in each condition... Any Ideas how to do this without writing 4 separate conditions for that one question? (I was thinking there was something like this:
If Var1=9 -> Do Expression
I don't know if you know this but you can set any block of conditions to be an "or" block instead of the default "and" block. Just right click the block (not the event) and click "set as or block" or something and if any of the events in there are true, it will do the action.
If you add "|" with strings or variables inside of textbox, it won't work.
You should use C2 event design like adding OR block.
Develop games in your browser. Powerful, performant & highly capable.
Thank you for the OR lesson! I missed that update... (I was out of touch for about a year, so I missed a bunch of changes.) That OR box will fix my problem.
There are other ways to do such comparisons. Here, I modified Joannesalfa capx to show the use of the logical OR operator (the |), and an alternative method using a function.
OR blocks are definately easier to read... although I hate the fact that you can't combine AND and OR in a single block.