or/and conditions

For questions about using Classic.

Post » Thu Nov 10, 2011 11:16 am

I made a private value for my objects. Field is of text type. I want to check if value is equal to "a" or "b" or "c", or to check if it's equal to "a" or ("b" and "c").

I cannot figure out how to do it in effective way in event sheet. Conditions are chained by "and" by default from what I can see and with just 3 they already became bloated.

I found a way to kind of counter it for problem I had at hand, but I would know for future if there is easy way to input logic between conditions easily.
B
2
G
1
Posts: 2
Reputation: 454

Post » Thu Nov 10, 2011 1:05 pm

You have a "or" condition in the system object.
It looks also like your are going to have to use subevents.
Checking if value is a or b or c should be one subevent, checking of value is equal a or b and c should be another one.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
294
S
117
G
96
Posts: 7,311
Reputation: 71,086

Post » Thu Nov 10, 2011 1:09 pm

Yeah, using subevents is what I did, but the or in system object is what I was looking for. Obvious as that might have been I missed it. Thanks :)
B
2
G
1
Posts: 2
Reputation: 454

Post » Thu Nov 10, 2011 2:36 pm

You can use or, and and in expressions as well.

CC expressions
Image ImageImage
B
171
S
50
G
179
Posts: 8,393
Reputation: 113,480


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests