{"name":"Statement","title":"Statement","type":"topic","url":"https://community.bistudio.com/wiki/Statement","revid":329108,"updated":"2022-07-22T12:48:01Z","aliases":[],"markdown":"A **statement** is a piece of scripting code. It is an **instruction** to the script Interpreter and tells it to do something.\n\n### Types of Statements\n\n#### Value Assignment\n\nA value assignment to a variable.\n\n```sqf\n_variable = 5;\n```\n\n#### Control Structure\n\nAny control structure including its blocks.\n\n```sqf\nif (_value > _limit) then\n{\n    hint \"oh no\";\n};\n```\n\n#### Command\n\nAny scripting command including its arguments.\n\n```sqf\nplayer sideChat \"hello\";\n```","sections":[{"heading":null,"level":1,"markdown":"A **statement** is a piece of scripting code. It is an **instruction** to the script Interpreter and tells it to do something."},{"heading":"Types of Statements","level":3,"markdown":""},{"heading":"Value Assignment","level":4,"markdown":"A value assignment to a variable.\n\n```sqf\n_variable = 5;\n```"},{"heading":"Control Structure","level":4,"markdown":"Any control structure including its blocks.\n\n```sqf\nif (_value > _limit) then\n{\n    hint \"oh no\";\n};\n```"},{"heading":"Command","level":4,"markdown":"Any scripting command including its arguments.\n\n```sqf\nplayer sideChat \"hello\";\n```"}],"categories":["Syntax"],"groups":["Scripting"]}