If (query directive)

From WandoraWiki
(Difference between revisions)
Jump to: navigation, search
 
Line 8: Line 8:
  
 
If(Directive cond,Directive then) - Depending on cond, returns the results of then directive or an empty result.
 
If(Directive cond,Directive then) - Depending on cond, returns the results of then directive or an empty result.
 +
 +
[[Category:Query directives]]

Revision as of 09:44, 20 August 2009

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