View Single Post
Old 03-15-2021, 10:09 PM   #1
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,000
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Template: field vs raw_field

I have an integer column with formatting {0}%

Which of these is better practice?

Code:
program:
	if field('#percentread') == '0%' then '1'
	fi
Code:
program:
	if raw_field('#percentread') ==# '0' then '1'
	fi
I know the differences between lexical and numerical but this is exact match so i am not sure if there is any difference. I am using the second currently.

Last edited by ownedbycats; 03-16-2021 at 01:41 AM.
ownedbycats is online now   Reply With Quote