Statement: Difference between revisions
Category: Syntax
Lou Montana (talk | contribs) m (Some wiki formatting)  | 
				Lou Montana (talk | contribs)  m (Some wiki formatting)  | 
				||
| Line 9: | Line 9: | ||
A [[Operators#Assignment Operators|value assignment]] to a [[Variables|variable]].  | A [[Operators#Assignment Operators|value assignment]] to a [[Variables|variable]].  | ||
<sqf>_variable = 5;</sqf>  | |||
=== Control Structure ===  | === Control Structure ===  | ||
| Line 15: | Line 15: | ||
Any [[Control Structures|control structure]] including its blocks.  | Any [[Control Structures|control structure]] including its blocks.  | ||
<sqf>  | |||
if (_value > _limit) then  | |||
{  | |||
	hint "oh no";  | |||
};  | |||
</sqf>  | |||
=== Command ===  | === Command ===  | ||
| Line 24: | Line 26: | ||
Any [[:Category:Scripting Commands|scripting command]] including its [[Argument|arguments]].  | Any [[:Category:Scripting Commands|scripting command]] including its [[Argument|arguments]].  | ||
<sqf>player sideChat "hello";</sqf>  | |||
[[Category: Syntax]]  | [[Category: Syntax]]  | ||
Latest revision as of 13:48, 22 July 2022
A statement is a piece of scripting code. It is an instruction to the script Interpreter and tells it to do something.
Types of Statements
Value Assignment
A value assignment to a variable.
Control Structure
Any control structure including its blocks.
Command
Any scripting command including its arguments.