|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Wed Dec 06, 2006 8:21 pm
Escape character to prevent quotes from evaluating? |
If I have a variable such as:
#var myvar {This is "a sample" line.}
Is there a way to escape the quotes so that they do not evaluate to this:
This is a sample line.
So I can't do thing properly like #if(@myvar == "This is "a sample" line.") properly.
I've tried \ and ~ and " but nothing seems to escape this so it doesn't evaluate. I'm assuming if I can find the appropriate character I can do a simple subregex to escape the characters. |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Wed Dec 06, 2006 8:41 pm |
try using
#var myvar {This is ~"a sample~" line.}
to set the value
and
%quote(@myvar)
to use it later |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
ReedN Wizard
Joined: 04 Jan 2006 Posts: 1279 Location: Portland, Oregon
|
Posted: Wed Dec 06, 2006 9:59 pm |
That work, thanks!
|
|
|
|
|
|