Ein bedingter Befehl wie IF, aber ohne ein Block zu sein.
{#WHEN if=$phpexpression then=first else=second}Wenn die $phpexpression (siehe #IF-Befehl) wahr ist, wird first ausgegeben. Ansonsten second.
Beispiele:
{#WHEN $var true false}
{#WHEN "$var == 1" "eine Stunde" "$var Stunden"}
Located in /web/mod/mod.template.compiler.php (line 865)
_Cmd | --_Cmd_When
Inherited From _Cmd
_Cmd::_Cmd()
_Cmd::compile()
_Cmd::getName()
_Cmd::init()
_Cmd::isBlock()
_Cmd::isValidParent()
Documentation generated on Mon, 22 Oct 2007 17:17:27 +0200 by phpDocumentor 1.3.1