Ashley Error with String (with double quotation marks)

Just started using Construct 2? Post your questions here

Post » Thu Dec 14, 2017 1:59 pm

Hello Scirra I'm trying to put quotation marks inside the String and the manual asks to put "" hi "" (with double quotation marks), but does not accept the syntax error. Is there any way to fix the problem?

https://www.scirra.com/tutorials/77/nat ... onstruct-2
B
22
S
8
Posts: 27
Reputation: 1,558

Post » Thu Dec 14, 2017 2:08 pm

marceloborghi wrote:Hello Scirra I'm trying to put quotation marks inside the String and the manual asks to put "" hi "" (with double quotation marks), but does not accept the syntax error. Is there any way to fix the problem?

https://www.scirra.com/tutorials/77/nat ... onstruct-2


This section is for actual bugs in the Construct 2 software. Is this what your post is saying?

If so, please ensure you follow the Bug Report Requirements or this report will not be investigated, and will likely be closed automatically.

If you just want to ask a question then the correct forum location is the C2 'How Do I' section.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
145
S
33
G
89
Posts: 5,909
Reputation: 62,581

Post » Thu Dec 14, 2017 4:13 pm

@marceloborghi

You need one " for defining the start/end of the string and then two "" to show a quote, so """hi""" to show "hi"

From the manual:
The double-quotes are not included as part of the text, so setting a text object to show the expression "Hello" will make it show Hello, without any double-quotes. To include a double-quote in a string, use two double-quotes next to each other (""), e.g. "He said ""hi"" to me" will return He said "hi" to me.
Find all the Construct 2 games that were on Steam Greenlight here
B
41
S
11
G
7
Posts: 511
Reputation: 7,326

Post » Thu Dec 14, 2017 7:15 pm

Moved from Bugs to Beginner's questions.
Scirra Founder
B
414
S
245
G
92
Posts: 25,198
Reputation: 200,337

Post » Sun Jan 21, 2018 5:05 am

i found this problem, this tutos no explain correctly. form correctly is double quotation "" "", thanks guys ^^
B
22
S
8
Posts: 27
Reputation: 1,558


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest