Statement: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
Line 11: Line 11:
=== Value Assignment ===
=== Value Assignment ===


An [[Operators#Assignment Operators|value assignment]] to a [[Variables|variable]]
A [[Operators#Assignment Operators|value assignment]] to a [[Variables|variable]]:


  _variable = ...
  _variable = ...

Revision as of 03:11, 22 December 2006

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

A statement can be:

Value Assignment

A value assignment to a variable:

_variable = ...

Control Structure

Any control structure including its blocks.

if (_value > _limit) then
{
    hint "oh no";
}

Command

Any scripting command including its arguments.

player sideChat "hello";