Skip to content

Keywords

amarcruz edited this page Sep 24, 2016 · 1 revision

#set <varname> [=] <value>

Defines or redefines a jscc (compile-time) variable, aka varname.

To be valid, varnames must match the JavaScript regex /_[0-9A-Z][_0-9A-Z]*/.

<value> can be a raw value, varname, or expression. If you don't specify the value, it is set to undefined.

You can omit the equal sign (=).

#unset <varname>

Removes the given varname.

#if <expression>

Includes the block that follows if <expression> is not falsy.

You can nest multiple #if.. blocks.

#elif <expression>

It will be evaluated if the previous #if was falsy.

You can have multiple #elif blocks following the #if.

#else

Includes the block that follows, if the previous #if/#elif expressions were falsy.

#endif

Closes the #if... block.

#ifset <varname>

Test the existence of a jscc variable, even if its value is undefined.

The returned value is a boolean, its behavior is the same as #if/#elif.

#ifnset

Test the nonexistence of a jscc variable.

Clone this wiki locally