[pmwiki-users] using PTVs as shortcuts for conditionals

2007-05-29 Thread Ben Stallings
I tried to use page text variables in a tricksy kind of way, and I'm curious why it didn't work. I have a long if/elseif set of conditionals like so: (:if condition 1:) message 1 (:else if condition 2:) message 2 (:else if condition 3:) message 3 (:else if condition 4:) message 4 and I want a

Re: [pmwiki-users] using PTVs as shortcuts for conditionals

2007-05-29 Thread Ben Stallings
Ben Stallings wrote: (:flag: yes:) so that rather than testing conditions 1 through 4 over and over again I could just test for (:if equal {$:flag} yes:) ... but it doesn't work. Found the problem, I think... the tests in question are in a GroupHeader, and page text variables defined

Re: [pmwiki-users] using PTVs as shortcuts for conditionals

2007-05-29 Thread Patrick R. Michaud
On Tue, May 29, 2007 at 04:34:10PM -0500, Ben Stallings wrote: (:if condition 1:) message 1 (:else if condition 2:) message 2 (:else if condition 3:) message 3 (:else if condition 4:) message 4 and I want a whole bunch of other stuff (including pagelists, which have their own

Re: [pmwiki-users] using PTVs as shortcuts for conditionals

2007-05-29 Thread Crisses
On May 29, 2007, at 5:41 PM, Ben Stallings wrote: Ben Stallings wrote: (:flag: yes:) so that rather than testing conditions 1 through 4 over and over again I could just test for (:if equal {$:flag} yes:) ... but it doesn't work. Found the problem, I think... the tests in question