Model Object Miscellaneous Functions boolean model
Returns true
if the specified property exists on the model and is not a blank string.
Name | Type | Required | Default | Description |
---|---|---|---|---|
property | string | Yes | Name of property to inspect. |
// Get an object, set a value and then see if the property exists
employee = model("employee").new();
employee.firstName = "dude";
return employee.propertyIsPresent("firstName"); // Returns true
employee.firstName = "">
return employee.propertyIsPresent("firstName"); // Returns false