3

How do you do a switch case syntax using Dwoo template engine.

Aivan Monceller
  • 4,636
  • 10
  • 42
  • 69
  • 1
    It never ceases to amaze me how many new things I learn about just by browsing SO. It also never ceases to amaze me how wrong it is to leave the responsibility of product naming in the hands of geeks :-) Seriously, "dwoo"? I think I wiped some of that off the bottom of my shoes last week. – paxdiablo Nov 02 '10 at 02:01
  • What do you want to achieve? You might be better off using a regular function, passing your variable as parameter in and render partial templates inside. – apfelbox Aug 16 '12 at 13:48

1 Answers1

0
{if 3 == 5}
  never gonna happen
{elseif 3 == 3}
  if you don't see this, the world is coming to its end
{else}
  this will never happen, unless, as previously mentionned, the world is coming to its end
{/if}

http://wiki.dwoo.org/index.php/If

David Morrow
  • 8,965
  • 4
  • 29
  • 24