Lua Methods Reference > LuaDocument Methods > hasField

hasField
The hasField method checks to see if a field exists in the current document.
Syntax
hasField ( fieldname [, case])
Arguments
 
(boolean) A boolean that specifies whether the fieldname is case-sensitive. The field name is case-sensitive by default.
Returns
(Boolean). True if the field exists, false otherwise.