Yes, with a GPM template. The following example shows you how to do the test. Up to you to figure out what you want to do in each case.
Code:
program:
x = raw_field('#myint');
if x == 'None' then
'Not Set'
else
strcat('Is Set to ', x)
fi
In the latest calibre release, raw_field() takes an optional second parameter specifying what to return if the field isn't defined. Example:
Code:
x = raw_field('#myint', -999);
Regarding searching, you can distinguish between the two by looking for 'true' or 'false' as in