-
Notifications
You must be signed in to change notification settings - Fork 2
#block
Marcus edited this page Oct 14, 2015
·
1 revision
The block directive introduces a block scope. This means that variables set within the block won't be available outside of it.
Syntax:
$$#block$$
...
$$/block$$
- May be empty: no
- May be nested: yes
$$#define foo = 1 /$$
foo = $$foo$$
$$#block$$
foo = $$foo$$
$$#define foo = 2 /$$
foo = $$foo$$
$$/block$$
foo = $$foo$$
outputs
foo = 1
foo = 1
foo = 2
foo = 1