[SOLVED] Search / write a quotation mark ( " )

Hello,
I’m using the function that searches a string in a text ( StrFindFrom() ) and I would like to look for the quotation marks (") in a text, loaded from a .txt file. But in GDevelop, " cannot be used as a character since it is used to contain a string…

Is there a way to do it?

The problem is the same if I want to write a " .

Thank you!

In a javascript code, get your variable like this:
image
After that, change that variable’s value and use / to use quotation marks.
image
And the total code would be


AFAIK this is how you can use a quotation marks in a text.

Quotation marks can be used in any expression simply by preceeding it with a slash
\

So if you were, say, using
StrFind(""","Hello "My Friend"")
it would be
StrFind("\"","Hello \"My Friend\"")

Can we use this in our normal events?

Edit: I tried it and it works on normal events. So, you don’t have to do all of this JS but instead, do this:


To display this:
image

Thanks so much! Each of your replies are very interesting to me! :slightly_smiling_face::slightly_smiling_face::slightly_smiling_face: