2010/10/15 Iñaki Baz Castillo ibc@aliax.net:
- In case I retrieve 1...8 from the database:
- if $avp(column) => true - if $avp(column) >=0 => true
- In case I retrieve 0 or NULL from the database:
- if $avp(column) => false - if $avp(column) >=0 => ERROR (invalid comparison)
So there is no way to determine if the retrieved value is *any* integer (including 0), is there?
A terrible hack:
if $(avp(column){s.len}) > 0 && ...
This is, in case the valus is an integer (including 0) its string legth is greater than 0. But this is a non ellegant workaround.