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

Bug in IF implementation?

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:

<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 />


I have wml version 2.0.6. It is interesting whether the same goes under
version 2.1.

Petr Andreyev

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