03-25-2016, 09:49 AM
|
#12
|
Grand Sorcerer
Posts: 12,489
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Originally Posted by nqk
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.
|
|
|