Help:Parser functions and conditional values

MediaWiki is a templating system, not a programming environment. The effect is that all parameters to all parser functions are always evaluated. (If you want a real programming environment, see ).

This does not work as expected, because it will set both values: The correct way to do it is

For the same reason, this does not work:

Even if the text "There are NO results!" is NOT displayed when there are some results to the query, still the #set parser function gets called.

Further information:
 * Live example on 