OR condition

For questions about using Classic.

Post » Tue Oct 05, 2010 12:57 am

Just thought that I'd point out a possible workaround to using the OR condition. I've found that most anything that I've wanted to use it for can be done just as well with the system condition Evaluate, using the OR operator in an expression form. Like so:

+ System: global('x') = 2 or global('x') = 5
-> Do something...

It has not caused me any problems, and allows for more complex logical tests in less space. Parentheses and the AND operator can be used to group parts of the expressions as appropriate, too. Perhaps something like so:

+ System: (global('x') = 2 and global('y') > 6) or (global('x') = 5 and global('y') <= 6)
-> Do something...

I've gone to this every time that the OR condition seemed to be causing me problems, and it worked.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Tue Oct 05, 2010 8:35 pm

Sigh, I didn't know it was unstable.

This might be the cause of the weird crashes on my first completed game :(
I'll be sure to avoid it in my current one.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests