Double quote mark problem...
Hi, can't remember the best way to solve this any help appreciated, thanks:
I want to add a double quote mark to a text attribute but get Invalid Expression:
MyAtt.."""
Hi, can't remember the best way to solve this any help appreciated, thanks:
I want to add a double quote mark to a text attribute but get Invalid Expression:
MyAtt.."""
Comments
Solved: I tried \" (MyAtt.."\"") and that's working now. I'll keep this thread here in case anyone else needs the solution at some other time.
@gyroscope , escape the quote with a backslash ( \ ). Alt-Shift-7 if your keyboard does not have that key.
e.g.
will display
Good to hear, @Hopscotch, thanks.
(I'll try Alt-Shift-7 if it doesn't work on the iPad too - useful to know, thanks again).
Another solution is to use two single quotes, so . . .
"Your name is ".."''"..name.attribute.."''"
Hi @Socks, Neat workaround, thanks (although \" seems to work OK on the device too).
Escape characters are well established in pretty much every programming language including Lua so they should be entirely safe to use.
There's actually a few more tricks you can use like that but only some are supported by GameSalad.
Useful to know, thanks @Armelline - + I'll bookmark that page from your link.