|
IsImage
DescriptionDetermines
whether a variable returns a ColdFusion image.
ReturnsTrue,
if the value is a ColdFusion image; False, otherwise.
Function syntaxIsImage(name)
HistoryColdFusion
8: Added this function.
Parameters
Parameter
|
Description
|
name
|
Required. The ColdFusion variable that is
checked.
|
UsageUse 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>
|