add two global variable to a global variable

Get help using Construct 2

Post » Wed Aug 29, 2012 1:16 pm

I've a global variable A to "Hello" and global variable B to "World".

Now I want to add A and B to global variable C.

I tried setting C to A+B but on text output C displays "A+B"

How do I get C to show "Hello World" instead?

B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Wed Aug 29, 2012 2:08 pm

It's & to concatenate strings.

For example :

A & " " & B
B
40
S
9
G
5
Posts: 127
Reputation: 6,609

Post » Wed Aug 29, 2012 3:05 pm

Here you go.


C=A+B.capx
B
38
S
15
G
6
Posts: 238
Reputation: 7,760

Post » Wed Aug 29, 2012 3:20 pm

Perfect! Thank you.

I knew there it had to be something simple I was missing.

B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Sun Oct 13, 2013 2:40 am

what happened to the C=A+B.capx file?
B
9
S
2
Posts: 272
Reputation: 1,632


Return to How do I....?

Who is online

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