If (query directive)

From WandoraWiki
Revision as of 10:44, 20 August 2009 by Olli (Talk | contribs)

Jump to: navigation, search

Description

Returns results of one of two directives depending on the input. The conditional directive is given the input of this directive. If it returns a non empty result then the then directive is used. Otherwise the else directive is used if provided or an empty result is returned.

Constructor

If(Directive cond,Directive then,Directive else) - Depending on cond, returns the results of either then or else directive.

If(Directive cond,Directive then) - Depending on cond, returns the results of then directive or an empty result.

Personal tools