Feature Proposal: Empty IF condition to be regarded valid and false

Motivation

%IF{"" then="THEN" else="ELSE"}% now causes an error because a null string is not a valid condition. In the past, a null string was a valid false condition.

Description and Documentation

Allowing empty condition (to be exact a string matching ^\s*$) and regarding it as false.

Examples

Impact

Implementation

-- Contributors: Hideyo Imazu - 2013-02-07

Discussion

No-brainer, IMO can be handled as a bug.

-- Peter Thoeny - 2013-02-08

I was thinking only about a null string. But strings matching ^\s*$ were regarded as false in the past, I realized. So I modified the description above accordingly.

-- Hideyo Imazu - 2013-02-21

Makes sense.

-- Peter Thoeny - 2013-02-21

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2013-09-19 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.