isFile
Table of Contents
Note: This function is applicable to all Zoho services. In Zoho Creator, this function can be applied only on files fetched using the invokeUrl task and not on the files fetched from Zoho Creator fields.
Overview
The isFile function takes a file object as an argument and returns true if it is a valid file. Otherwise, it returns false.
Note:
- The file object should be available in the cloud.
- Offline files are not supported.
Return Type
- BOOLEAN
Syntax
<variable> = <file_object>.isFile();
(OR)
<variable> = isFile(<file_object>);
where,
Parameter | Data type | Description |
<variable> | BOOLEAN | Variable which will contain the returned boolean value. |
<file_object> | Any datatype | The file object fetched from the cloud/web. Learn more about fetching files from the web here. |
Examples
file_object = invokeUrl [ url: "http://www.thenonlinearpath.com/wp-content/uploads/2016/05/GoodVibesOnly.png" type: GET ]; if(file_object.isFile()){ // Do something }