View Single Post
Old 03-25-2016, 09:49 AM   #12
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,489
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by nqk View Post
Edit: Forget it, I figured it out. . Done.
It became like this
Code:
program:
val = field('#pages');
first_non_empty(
	cmp(val, 90, 'Rất ngắn (~ 89)', '', ''),
	cmp(val, 250, 'Ngắn (90-249)', '', ''),
	cmp(val, 550, 'Vừa (250-549)', '', ''),
	cmp(val, 1200, 'Dài (550-1199)', '', ''),
	'Rất dài (1200 ~)');
Excellent.
chaley is offline   Reply With Quote