If

From AffiliateBang Wiki

Jump to: navigation, search

if is a Midge directive which displays the second argument if the first argument is true. It is possible to nest directives inside of an if statement

Example

[#if,[#global,counter],Hello]

Returns

Prints Hello if the global variable counter is true.

Personal tools