Item10253: IfStatements page does not tell about checking the value of configure setting
Priority: Normal
Current State: Closed
Released In: 1.1.3
Target Release: patch
Applies To: Engine
Component: Documentation
Branches:
(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