NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item9693 for docu changes for 1.2 and 2.0.
Item10253: IfStatements page does not tell about checking the value of configure setting
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Normal |
Closed |
Engine |
Documentation |
|
(view on trunk)
Why doesn't this work?
%IF{"'{UsersWebName}'='Main'" then="Main web not renamed" else="Main web renamed"}%
(result: Main web renamed)
and this does?
%IF{"'%QUERY{"{UsersWebName}"}%'='Main'" then="Main web not renamed" else="Main web renamed"}%)
(result: Main web not renamed)
It looks like the decription in
IfStatements "Configuration item set or not" is exactly that and not more. Which is a bit meager.
So this does work, without quotes:
%IF{"{UsersWebName}='Main'" then="Main web not renamed" else="Main web renamed"}%
(result: Main web not renamed)
Then only some extra examples in the documentation is needed.
--
ArthurClemens - 12 Jan 2011