Blocks:else

From Dwoo Docs

(Redirected from Else)
Jump to: navigation, search

Generic else block, it supports all builtin optional-display blocks which are if, loop, for, foreach and with.

If any of those block contains an else statement, the content between {else} and {/*blockname*} (you do not need to close the else block) will be shown if the block's condition has no been met




Example :

{foreach $array val}
$array is not empty so we display it's values : {$val}
{else}
if this shows, it means that $array is empty or doesn't exist.
{/foreach}
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.