Else statement

10 views
Skip to first unread message

Vincent Bastos

unread,
Oct 11, 2016, 3:15:05 AM10/11/16
to relatorio
Hi,

I was wondering if anyone had an example of an else statement or do we have to use the if and choose and when?

e.g.:

<if test="invoice.type == 'in_invoice'">

<choose test="">

<when test="invoice.state == 'draft'">

Cédric Krier

unread,
Oct 11, 2016, 9:00:03 AM10/11/16
to relatorio
There is no "else" in Genshi so you must use choose/when/otherwise.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/
Reply all
Reply to author
Forward
0 new messages