Problem with string values

Just started using Construct 2? Post your questions here

Post » Thu Apr 14, 2016 9:48 pm

Message: mczolly can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Hello! This is my first project in Construct 2. There is a logic in my application which is checking whether two variables (CurrentArticle; ChosenArticle) are set to the same string value or not. Even when in debugging the two variables appear to have the same value, the condition doesn't become true. One of the strings is importad from a txt by AJAX, maybe the character coding could be the problem?
I have no idea why this is happening, if you can, please help me.
https://dl.dropboxusercontent.com/u/10871701/files/dapp.capx
B
3
Posts: 2
Reputation: 179

Post » Thu Apr 14, 2016 11:00 pm

"der"≠" der"
set ChosenArticle to trim(tokenat(WordsArray.At(randomNumber),1,";"))
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Fri Apr 15, 2016 11:26 am

korbaach wrote:"der"≠" der"
set ChosenArticle to trim(tokenat(WordsArray.At(randomNumber),1,";"))


You are a true hero, thanks a lot! This has solved the issue!
B
3
Posts: 2
Reputation: 179

Post » Mon Apr 18, 2016 12:35 pm

I guess you were spaced out when this occured.

yours
Winkr7
B
34
S
8
G
3
Posts: 169
Reputation: 3,305


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron