You are here: Foswiki>Tasks Web>Item5883 (05 Aug 2008, SvenDowideit)Edit Attach

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

pencil
Priority: Enhancement
Current State: New
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: TWiki:Main.SvenDowideit
Waiting For:
Last Change By: SvenDowideit
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 edit

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 - 05 Aug 2008, SvenDowideit
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy