Code vs. Strings: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (1 typo) |
||
Line 1: | Line 1: | ||
Since [[Armed Assault]] you can use ''<nowiki>'...'</nowiki>'', ''"..."'' or ''""...""'' '''only''' for [[String]]s and ''{...}'' '''only''' for [[Code]]. | Since [[Armed Assault]] you can use ''<nowiki>'...'</nowiki>'', ''"..."'' or ''""...""'' '''only''' for [[String]]s and ''{...}'' '''only''' for [[Code]]. | ||
In [[Operation Flashpoint | OFP]] many | In [[Operation Flashpoint | OFP]] many language constructs (including [[forEach]], [[if]], [[while]]) use the concept of "code strings".<br> | ||
Code is passed as a string to them and they interpret it as code if they wish.<br> | Code is passed as a string to them and they interpret it as code if they wish.<br> | ||
Since version 1.85, string constants can be written in two ways: | Since version 1.85, string constants can be written in two ways: |
Revision as of 22:32, 20 December 2007
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}).