Decision Functions

namedescription
fileExistsDetermines whether an on-disk or in-memory file exists.
fileIsEOFDetermines whether ColdFusion has reached the end of an on-disk or in-memory file while reading it.
getLocalHostIPReturns the localhost IP address, which is 127.0.0.1 for IPv4 and ::1 for IPv6 addresses.
iIfEvaluates a Boolean conditional dynamic expression. Depending on whether the expression is yes or no, dynamically evaluates one of two string expressions and returns the result. This function is convenient for incorporating a cfif tag in-line in HTML.
isArrayDetermines whether a value is an array.
isBinaryDetermines whether a value is stored as binary data.
isBooleanDetermines whether a value can be converted to Boolean
isCustomFunctionDetermines whether a name represents a custom function.
isDateDetermines whether a string or Java object can be converted to a date/time value.
isDDXDetermines whether a DDX file exists and is valid, or if a string contains valid DDX instructions.
isDebugModeDetermines whether debugging output is enabled.
isDefinedEvaluates a string value to determine whether the variable named in it exists.
isInstanceOfDetermines whether an object is an instance of a ColdFusion interface or component, or of a Java class.
isK2ServerABrokerThis function is deprecated.
isK2ServerDocCountExceededThis function is deprecated.
isK2ServerOnlineThis function is deprecated because the K2Server is always running when ColdFusion is running.
isLeapYearDetermines whether a year is a leap year.
isLocalHostDetermines whether the specified IP address is the localhost. This supports both IPv4 and IPv6 addresses.
isNullUsed to check if the given object or expression evaluates to null.
isNumericDetermines whether a string can be converted to a numeric value. Supports numbers in U.S. number format. For other number support, use LSIsNumeric.
isNumericDateEvaluates whether a real number is a valid representation of a date (date/time object).
isObjectDetermines whether a value is an object.
isPDFFileVerifies whether a PDF file is valid.
isPDFObjectDetermines whether a value is a PDF object.
isQueryDetermines whether value is a query.
isSimpleValueDetermines the type of a value.
isStructDetermines whether a variable is a structure.
isUserInAnyRoleDetermines whether an authenticated user belongs to any role in a list of roles.
isUserInRoleDetermines whether an authenticated user belongs to the specified Role.
isUserLoggedInDetermines whether a user is logged in.
isValidTests whether a value meets a validation or data type rule.
isWDDXDetermines whether a value is a well-formed WDDX packet.
isXMLDetermines whether a string is well-formed XML text.
isXmlAttributeDetermines whether the function parameter is an XML Document Object Model (DOM) attribute node.
isXmlDocDetermines whether the function parameter is a ColdFusion XML document object.
isXmlElemDetermines whether the function parameter is an XML document object element.
isXmlNodeDetermines whether the function parameter is an XML document object node.
isXmlRootDetermines whether the function parameter is the root element of an XML document object.
lSIsCurrencyDetermines whether a string is a valid representation of a currency amount in the current locale.
lSIsNumericDetermines whether a string is a valid representation of a number in the current locale.
structIsEmptyDetermines whether a structure contains data.
structKeyExistsDetermines whether a specific key is present in a structure.
yesNoFormatEvaluates a number or Boolean value.