Quote:
Originally Posted by ownedbycats
For numerical columns, is there a better way to equal 0 while excluding nulls?
Code:
elif (percent >=#1 && percent <=#99||$$#lastread !='None' && percent ==#0 && percent !='None')
then 'currentlyreading'
|
You don't say where you got "percent". If it comes from a $$#something then I would use
Code:
raw_field('#something', -1)
that ensures that if #something isn't defined then the value of percent is -1.