Fairlight [[EMAIL PROTECTED]] wrote:
> On Fri, Aug 20, 1999 at 05:09:51AM -0500, Jeremy Blosser wrote:
> > Jeremy Blosser [[EMAIL PROTECTED]] wrote:
> > > > > You can use %M in the index_format to show the number of messages in a
> > > > > collpased thread.  You can use something like %?M?+& to get just a + sign
> > > > > in your index listing for collapsed threads.  See the help for index_format
> > > > > for more info.
> > 
> > That should have been ?M?+& ?
> 
> What's the "& " for?

ARGH.  It really should have been %?M?+& ?

% starts the sequence
? starts the 'if'
M is the regular % token to use for the condition
? prefaces the non-zero part
+ is what to print if the condition (%M) is non-zero
& prefaces the zero part
  (space) is what to print if the condition is zero
? ends the sequence

Without the "& " part, it doesn't leave a space if it doesn't print the +,
which makes the alignment of the columns get off.

See the status_format manual entry for more explanation and examples.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-----------------+-------------------------+------------------------------
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

PGP signature

Reply via email to