Choose where you’d like to start

isValidObject

Overview

The isValidObject function validates an expression for null and empty values. If the expression does not resolve to null or empty, the function returns a true. If not, it returns a false.

Return Type

Syntax

<variable> = <expression>.isValidObject();

where,

ParameterData typeDescription
<variable>BOOLEANVariable which will contain the boolean result of the isValidObject operation.
<expression>ANY DATA TYPEThe value which needs to be validated for null and empty values.

Examples

 is_valid="Zoho".isValidObject(); // is_valid will be assigned 'true'
 value = '';
 isValid= value.isValidObject(); // isValid will be assigned 'false', since the value is empty.

Related Links

Get Started Now

Execute