how to compare string

Discussion and feedback on Construct 2

Post » Thu Jun 28, 2012 10:43 am

HI All,
how construct2 compare two string please give me any idea about this.
because i have use " = " and it doesn't give me the good resultbouguima2012-06-28 10:45:35
B
5
S
2
Posts: 49
Reputation: 873

Post » Thu Jun 28, 2012 10:55 am

using " = " is good so it's not the problem
Are these 2 string global variables ? if not can you share a .capx ?
B
18
S
5
G
3
Posts: 298
Reputation: 5,332

Post » Thu Jun 28, 2012 10:57 am

Try using the system 'compare values' condition. If that doesn't work, I think we need to know more about what you're trying and where you're entering it.
Scirra Founder
B
398
S
236
G
88
Posts: 24,441
Reputation: 194,671

Post » Fri Jul 28, 2017 1:03 am

If the initial value of a string variable is between brackets it won't work, for example:

Local Variable Bob = "salsa" (will NOT work)
Local Variable Bob = salsa (will work)

ps: I know this is a 2012 question, but this "bug/feature" still exists.
B
3
Posts: 1
Reputation: 177

Post » Fri Oct 20, 2017 5:54 pm

Yes, wasted a few hours on this :(
B
7
Posts: 4
Reputation: 283


Return to Construct 2 General

Who is online

Users browsing this forum: Tokinsom and 7 guests