What is the "and" sign?

Get help using Construct 2

Post » Mon Apr 25, 2016 4:16 pm

Hi, in c++ the and sign is && and the "or" is ||
so if i want to compare time i put :
time1<time2&&time3&&time4
How is it in C2?
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Mon Apr 25, 2016 4:23 pm

Just &, with a sprinkling of int() since concatenation changes values to string.
Image ImageImage
B
169
S
50
G
174
Posts: 8,322
Reputation: 110,788

Post » Mon Apr 25, 2016 5:22 pm

@newt Thank you very much
B
11
S
3
Posts: 277
Reputation: 1,395

Post » Mon Apr 25, 2016 5:26 pm

Unless you want addition, which is just +, and can work with strings as well.
Image ImageImage
B
169
S
50
G
174
Posts: 8,322
Reputation: 110,788

Post » Mon Apr 25, 2016 5:56 pm

@newt Thank you.
B
11
S
3
Posts: 277
Reputation: 1,395


Return to How do I....?

Who is online

Users browsing this forum: FabianB and 13 guests