View Single Post
Old 02-24-2021, 05:38 PM   #6
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,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
#percentread is interger formatted as {0}%.
raw_field('#percentread') will give you the underlying number without formatting.

When using raw_field, undefined numeric fields are assumed to have a value of zero. If this isn't acceptable then use
Code:
and(field('#percentread'), raw_field('#percentread') ># 1)
This checks if the field has a value (the first field()) and if defined then checks the value.
chaley is offline   Reply With Quote