Compound statements are multiple statements grouped into a single logical statement.
Details are as follows:
The following example uses a compound statement to group two statements together into one logical statement.
{
x = y * 2;
z = x + y;
}
The following example uses a compound statement to hide a variable in the compound statement's scope. This example prints the string 5 to the Simdify application's output window.
{
int x = 10;
}
int x = 5;
Application.Log.LogString( x );