View Single Post
Old 03-24-2016, 08:04 AM   #10
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
@nqk: Now that the cloud connection fetches custom columns built from other columns, you can use a template that automatically computes the names.

One example template:
Code:
program:
val = field('#myint');
first_non_empty(
	cmp(val, 6, 'very small (0-5)', '', ''),
	cmp(val, 11, 'small (6-10)', '', ''),
	cmp(val, 16, 'medium (11-15)', '', ''),
	cmp(val, 21, 'large (16-20)', '', ''),
	'very large (>20)');
chaley is offline   Reply With Quote