Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50107

Template: field vs raw_field

$
0
0
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.

Viewing all articles
Browse latest Browse all 50107

Latest Images

Trending Articles



Latest Images