The value of the following expression is 1 if the firstname has been set or 0 (zero) if firstname is null.
<notnull> <ref>firstname</ref> </notnull>