19 lines
519 B
Markdown
19 lines
519 B
Markdown
# Compound Operator
|
||
|
||
A compound operator (a block) consists of one or more operators of any type, enclosed in braces {}. The closing brace must not be followed by a semicolon (;).
|
||
|
||
Example:
|
||
|
||
```
|
||
if(x==0)
|
||
{
|
||
Print("invalid position x = ",x);
|
||
return;
|
||
}
|
||
|
||
```
|
||
|
||
See also
|
||
|
||
[Initialization of Variables](/en/docs/basis/variables/initialization), [Visibility Scope and Lifetime of Variables](/en/docs/basis/variables/variable_scope), [Creating and Deleting Objects](/en/docs/basis/variables/object_live)
|