[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Bug in IF implementation?
- From: Petr Andreyev <nospam@thanx>
- Date: Mon, 7 May 2001 19:26:11 +0400 (MSD)
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.
Sincerely,
--
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