User talk:AzaToth/X1

How it works
The main technology used is to use parameter values to expand other parameter.
 * First we try to expand else:
 * But else should only be expanded if test is empty:
 * If else was not expanded, we must try parameter 3, this is the same as before:
 * Then if 3 was not expanded, we must check if there was a parameter else or 3 in the first place, we do it by try to expand the test parameter plus their eventually value:
 * If we come this far, we can now expand the then parameter:
 * But we have one step more to do, the so called idiot protection, if the user called if with only the parameter then, we protect from by trying to add the value of (then plus the value of test):

Example
If we are calling with, then:

Tests

 * User:AzaToth/X1:
 * Template:If:

Discussion
The only time my fails, is when you only have the parameter then or 2, but thats a not so common situation (in strict speaking, never print anything). → Aza  Toth 01:43, 27 November 2005 (UTC) Fixed that problem by appending  to then and 2' → Aza   Toth 15:02, 27 November 2005 (UTC)