Foswiki on GitHub is open for business! Next release meeting: Monday Dec. 1, 1300Z

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

 

ItemTemplate edit

Summary IfStatements page does not tell about checking the value of configure setting
ReportedBy ArthurClemens
Codebase 1.1.2, 1.1.1, 1.1.0, 1.1.0 beta1, trunk
SVN Range
AppliesTo Engine
Component Documentation
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:4459d302355a distro:827d10743a11
TargetRelease patch
ReleasedIn 1.1.3
Topic revision: r6 - 16 Apr 2011, KennethLavrsen
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons License