Template:Ifwp/doc

This template allows branching without.

It uses the code

Cases:
 * If is defined and not empty, this reduces to
 * If is defined and empty, this reduces to
 * If is undefined, this reduces to

If the intention is to treat empty and undefined as equivalent, then:

If is defined, we successfully avoid different results for  undefined or empty, and for  undefined or empty.

If is undefined and  is defined, we successfully avoid different results for  undefined or empty.

If and  are undefined, we successfully avoid different results for  undefined or empty.

If is undefined and  is defined, we have  for  undefined, but empty for  empty. This is different if is defined and not empty!

If and  are undefined, we successfully avoid different results for  undefined or empty.

If is defined and not empty and  is undefined, we get  if  is undefined, but empty if  is empty!

Summarizing: there is one deviating result: if is defined and not empty, we get this value if  and  are both undefined, but not if one of both are empty.

With ParserFunctions we can use.