Checks a document for the existence of a field.
@IsAvailable( fieldName )
fieldName
Field. The name of a field. Do not treat the name as text. Enter the exact name of the field and do not enclose it in quotes.
flag
Boolean
Use @IsAvailable to provide a default value for documents created with forms that do not include a field name.
This function can be used with select and column formulas using Summary fields only. Non-Summary fields are not available.
For information on creating a field in an existing document if it does not exist, see the FIELD keyword.
@If(@IsAvailable(Dept);Dept;"Consultant")
@If(@IsAvailable(Topic);Topic;Subject)
@If(@IsAvailable(Priority);@SetField("Priority";"High");FIELD Priority := "High")
HasItem method of LotusScript® NotesDocument class
hasItem method of Java™ Document class