[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: Bug in IF implementation?
- From: Denis Barbier <nospam@thanx>
- Date: Wed, 9 May 2001 00:43:59 +0200
On Mon, May 07, 2001 at 07:26:11PM +0400, Petr Andreyev wrote:
> Hello Collegues,
>
> it looks like the IF-tag implementation in mp4h is a bit peculiar. Namely, the
> condition seems to be checked twice: for the then-part and for the else-part
> separately. Therefore, if in the then-part I make the condition false, the
> else-part will be evaluated as well:
>
> ====CODE====
> <set-var a=o />
> <if <string-eq <get-var a /> o /> <set-var a=u /> <set-var b=r /> />
>
> A=<get-var a />;B=<get-var b />
>
> ====OUTPUT====
> A=u;B=r
> ======================
>
> I have wml version 2.0.6. It is interesting whether the same goes under
> version 2.1.
Hi Petr,
this bug has been fixed on 07-Nov-2000, and should not appear with WML
2.1a1; latest CVS does indeed print the right output.
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com