| is or?

Get help using Construct 2

Post » Thu May 01, 2014 2:03 pm

I have tried to search this but it is not possible to search on | or "or" because of too short word! :D

I tried to put a bunch of Constant variables and put | between them in a condition, to see if the object value is true to one of them, and as I have a list of 32 constants in that list I would prefer to put them all in a parameter line, instead for making a long condition box with this or this or this or that... But it won't work that way. Why? It works when I put all the constants one by one.. But it is quite scrolly, three pages for just that box, and I have to put same condition on many places! this is going to be a very very long event list visual wise.
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Thu May 01, 2014 2:11 pm

I also found another problem.. with my code.. Else won't work with or blocks! :( This is going to be killer long lists if I have to put separate events, oh wow.... Nightmare....

Yes I did try to put the or in a sub to the Else and it worked for the first Else, but not for subsequent elses. :/
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Thu May 01, 2014 2:15 pm

ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Thu May 01, 2014 4:09 pm

@blackhornet

I should have clarified I wanted to compare Array value with constant values. I do not know if your solution work with arrays? I am sorry I was too "generic" in my question.

Thank you for taking your time, though. :)
B
58
S
18
G
13
Posts: 447
Reputation: 10,740

Post » Thu May 01, 2014 4:18 pm

Still applies.
You do not have the required permissions to view the files attached to this post.
ImageImageImage
B
71
S
22
G
249
Posts: 3,763
Reputation: 138,577

Post » Thu May 01, 2014 4:39 pm

Oh, I see you used system comparison! Thank you. I will see if I can apply it to my events. Sorry for being daft. :)
B
58
S
18
G
13
Posts: 447
Reputation: 10,740


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests