Description

Determines whether a value is stored as binary data.

Returns

True, if the value is binary; False, otherwise.

Category

Decision functions

Function syntax

IsBinary(object)

See also

ToBinaryToBase64IsNumericYesNoFormat

Parameters

Parameter

Description

object

Number or string

History

ColdFusion (2018 release): Introduced named parameters.

Example

<cfscript>
num1 = 12;
num2 = 23;
result = IIf( num1 < num2, DE("true"), DE("false")) 
result1 = IsBinary(num1) & "<br>";
writeoutput(result1);
result2 = IsBinary(result) & "<br>";
writeoutput(result2);
</cfscript>

Output

NO
NO

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