Code vs. Strings

From Bohemia Interactive Community
Revision as of 23:32, 20 December 2007 by Lou Montana bi wiki (talk | contribs) (1 typo)
Jump to navigation Jump to search

Since Armed Assault you can use '...', "..." or ""..."" only for Strings and {...} only for Code.

In OFP many language constructs (including forEach, if, while) use the concept of "code strings".
Code is passed as a string to them and they interpret it as code if they wish.
Since version 1.85, string constants can be written in two ways:

Using double quotes (like "Hello") or curled braces (like {a=a+1}).