PITS /
00787: (:else:) extension of [[PmWiki/Conditional Markup]]
Summary:
(:else:)
extension of Conditional MarkupCreated: 2006-08-21 02:38
Status: Closed, in 2.2.0-beta32
Category: Feature
From: Simon
Assigned:
Priority: 5
Version: 2.1.14
OS: n/a
Description:
Suggested extension to the extremely useful (:if:) (:ifend:)
Conditional Markup.
have an optional (:else:)
clause, eg
(:if yadda yadda:) something (:else:) other thing (:ifend:)
For the time being I've declined this particular feature--see http://www.pmichaud.com/pipermail/pmwiki-users/2006-March/025591.html for the discussion.
Essentially, the problem is that adding (:else:)
and (:elseif:)
leads to a desire for nested-ifs, which means that we would have to separate the meanings of and , which complicates a lot of otherwise simple markup.
Pm
I'd be very happy just with the addition of a simple else, makes it simpler than writing
if condition
followed by
if not condition
which is sometimes harder to do, and why I though of requesting the enhancement
thanks