Skip to content

Conditions

Demez edited this page Aug 6, 2020 · 2 revisions

Basics

Conditions are a true or false check for whether to use a block or not, like an if statement

Any Macro in a Condition is replaced with the macros value, and then compared if any operators are used, and then checked


Values are a simple true or false check

Any positive number is True, and 0 is False

This would return True and the block would be used:

Key Value [$EXAMPLE]

You don't need to use macro to use one either, just put in any number or string you want:

Key Value [100]

Comparing Values

Values can be compared in many ways, and you can use as many as you want

Or Check: [$FOO || $BAR]

And Check [$FOO && $BAR]

You can also use them in parenthesis:

[($FOO || $BAR) && $POSIX]

You can also compare the values of macros with these operators:

>=  >  ==  !=  <  <=

Using an exclamation mark checks if it's not true, if it's a positive number, it sets it to negative, etc.

[!$MACRO]
[!($MACRO == string)]

Clone this wiki locally