[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

RE: How to do if..then..elsif




On 20-Aug-01 rvg@creato.org wrote:
> My problem is that I would like to define a WML macro that is modelled as an
> if .. then .. elseif .. else ...

> Depending on the bid I would like to show the appropriate suit symbol in the
> output.  I would also like to have a default error handling clause at the 
> end.

Would ePerl (pass 3) help you here? With mhc/mp4h you can use

<ifeq <get-var bli> <get-var bla>
 <set-var foo=first-if-clause>
 <ifeq <get-var bli> <get-var blo>   /* that's the "if-else" */
  <set-var foo=second-if-clause>
  <set-var foo=second-else-clause>
 >
>

Bye
 -jan

______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com