Description

Determines whether a variable returns a ColdFusion image.

Returns

True, if the value is a ColdFusion image; False, otherwise.

Category

Syntax

IsImage(name)

See also

History

ColdFusion 8: Added this function.

Parameters

Parameter

Description

name

Required. The ColdFusion variable that is checked.

Usage

Use this function to determine whether a variable returns a ColdFusion image.

Example

<cfif IsImageFile("images/#form.art#")> 
<cfset myImage=ImageNew("images/#form.art#")> 
... 
<cfset IsImage("#myImage#")> 
<cfimage action="writeToBrowser" source="#myImage#"> 
</cfif>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy