[pmwiki-devel] TRUE and FALSE in conditionals

Jiri Hladůvka / OBUTEX admin at obutex.com
Wed Mar 14 04:06:37 CDT 2007


As the side effect of testing empty string I discovered a wheel.
One has to realize that PmWiki "true" and "false" are not constants or 
variables
and when used in the conditional they are considered as tested texts.
e.g.
(:if equal ( equal A B ) false :)
A is not equal B
(:else:)
%red%A is equal B%%
(:ifend:)

see http://www.revida.sk/wiki/index.php/Test/8

They can be used only in the form
(:if true:)      -      always include text
and
(:if false:)      -      always exclude text (same as a comment)

as written in http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup


Regards,
Jiri

-- 
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín

tel.: +421 (0)32 6587000
mailto:admin at obutex.com

http://www.obutex.com





More information about the pmwiki-devel mailing list