How to put " in a string? [SOLVED]

Started by Theme, Wed 03/08/2005 19:00:40

Previous topic - Next topic

Theme

How do i put " inside a string like:
""yada yada yada""

o/

monkey0506

I believe that you use \".  That tells AGS not to end the string, but rather to read it as a regular ".


monkey0506

You're welcome.  Some other "escape sequences" (thanks strazer.net):

Quote from: Stazer @ Strazer.netCharacter to mask % symbol in strings: %

Display("The %% is the percent symbol.");

Character to mask quotemarks in strings: \

Display("The \" is a quotemark.");

Character for line breaks in strings: [

Display("The [ is a line break.");

Character to mask [ in strings: \

Display("The \[ is a left brace.");

TerranRich

Awesome! I gotta add this to the BFAQ.
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk