Home   Help Search Login Register  

Author Topic: How to display inverted commas in a string  (Read 832 times)

0 Members and 1 Guest are viewing this topic.

Offline UH60MG

  • Members
  • *
How to display inverted commas in a string
« on: 11 Mar 2008, 19:36:35 »
I have a string and I need to have double inverted commas in it is there a way to do this

I.e the string should be something like:

"[]exec "script.sqs""

(this is to go in the init field of a unit created by createUnit function)

Offline Loyalguard

  • Former Staff
  • ****
Re: How to display inverted commas in a string
« Reply #1 on: 11 Mar 2008, 20:55:39 »
In your example just add double quotes (inverted commas) around the name of the script like this:

"[]exec ""script.sqs"""

So, using the example parameters from the comref for createUnit:

Code: [Select]
"ClassName" createUnit [Position, Group, "[]exec ""script.sqs""", skill, rank];