• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item5883: IF requires strings to be quoted. but just returns 'false' if you forget?

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Enhancement New   n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

I just found a number of instances where I had forgotten the 's

  • IF{"%TOPIC% allows 'CHANGE'" then="change allowed" else="change not allowed"}
    • change not allowed

  • IF{"Bugs.Item5883 allows 'CHANGE'" then="change allowed" else="change not allowed"}
    • change not allowed

vs

  • IF{"'%TOPIC%' allows 'CHANGE'" then="change allowed" else="change not allowed"}
    • change not allowed

  • IF{"'Bugs.Item5883' allows 'CHANGE'" then="change allowed" else="change not allowed"}
    • change not allowed

this feels way to subtle and error prone

-- TWiki:Main/SvenDowideit - 05 Aug 2008

ItemTemplate
Summary IF requires strings to be quoted. but just returns 'false' if you forget?
ReportedBy TWiki:Main.SvenDowideit
Codebase 4.2.1, ~twiki4
SVN Range TWiki-5.0.0, Sun, 03 Aug 2008, build 17280
AppliesTo Engine
Priority Enhancement
CurrentState New
TargetRelease n/a
Topic revision: r1 - 2008-08-05 - SvenDowideit
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback