View Single Post
Old 09-10-2012, 12:40 PM   #4
Man Eating Duck
Addict
Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.Man Eating Duck juggles neatly with hedgehogs.
 
Posts: 254
Karma: 69786
Join Date: May 2006
Location: Oslo, Norway
Device: Kobo Aura, Sony PRS-650
Quote:
Originally Posted by chaley View Post
I am not currently in a position to write the template for you. Perhaps someone else can help out, should you need it.
Here:
Code:
{#pages:'first_non_empty(
 cmp($, 10, 'Tiny', '', '')
,cmp($, 25, 'Short', '', '')
,cmp($, 100, 'Medium', '', '')
,cmp($, 300, 'Long', 'Brick', 'Brick')
)'}
Just paste this into the template field in Columns built from other colums (line breaks are removed, but makes changes easier prior to pasting).
It works by successively comparing number of pages and selecting that value if the number is lower. I suppose you figure out how to change it to suit your preferences

You can copy/paste the second to last cmp line if you want more values.
Man Eating Duck is offline   Reply With Quote