Quote:
Originally Posted by Wiggo
Code:
program:
[...]
if $$#annots then icon = add_icon(icon, 'annotations.png') fi;
[...]

|
Don't use raw_field() when testing for an empty string. With raw_field(), if the value isn't defined you get 'NONE' instead of ''.
Use either:
Code:
#normal field()
if $#annots then icon = add_icon(icon, 'annotations.png') fi;
or
Code:
# raw_field()
if $$#annots != 'NONE' then icon = add_icon(icon, 'annotations.png') fi;