SQS to SQF conversion: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Removed old link) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
==What's different in SQF== | ==What's different in SQF== | ||
* Every command has to end with semicolon. | * Every command has to end with semicolon. | ||
* SQF does not have a [[goto]] command anymore. | * SQF does not have a [[goto]] command anymore. | ||
* SQF commands can span several lines if they are enclosed in brackets. | * SQF commands can span several lines if they are enclosed in brackets. | ||
Line 108: | Line 107: | ||
}} | }} | ||
=== | ===Exiting=== | ||
{{Box_File|SQS| | {{Box_File|SQS| | ||
? | ?CONDITION: [[goto]] "Exit" | ||
COMMAND_1 | COMMAND_1 | ||
Line 118: | Line 117: | ||
}} | }} | ||
{{Box_File|SQF|color_dark=#78AF78|color_light=#f2fff2| | {{Box_File|SQF|color_dark=#78AF78|color_light=#f2fff2| | ||
[[if]]( | [[if]] (CONDITION) [[exitWith]] | ||
{ | { | ||
COMMAND_2; | COMMAND_2; | ||
Line 124: | Line 123: | ||
COMMAND_1; | COMMAND_1; | ||
}} | }} | ||
== See Also == | |||
* [[SQF syntax]] | |||
[[Category:Syntax]] | [[Category:Syntax]] | ||
[[Category:Scripting Topics]] |
Revision as of 14:51, 17 January 2018
What's different in SQF
- Every command has to end with semicolon.
- SQF does not have a goto command anymore.
- SQF commands can span several lines if they are enclosed in brackets.
- SQF can return a variable, where SQS cannot.
Replacing
Comment
Template:Box File Template:Box File
Condition
Template:Box File Template:Box File
Delay
Template:Box File Template:Box File
Conditional command
Template:Box File Template:Box File
Multi-conditional command
Template:Box File Template:Box File
Cycle
Template:Box File Template:Box File
Cycle with step
Template:Box File Template:Box File
Structured conditional command
Template:Box File Template:Box File
Exiting
Template:Box File Template:Box File