User Guide
IsValid 689
IsValid
Description
Tests whether a value meets a validation or data type rule.
Returns
True, if the value conforms to the rule; False, otherwise.
Category
Decision functions
Function syntax
IsValid(type, value)
isValid("range", value, min, max)
isValid("regex" or "regular_expression", value, pattern)
See also
cfparam
, cfform, IsBoolean, IsDate, IsNumeric, IsSimpleValue; “Validating data with the
IsValid function and the cfparam tag” in Chapter 28, “Validating Data,” in ColdFusion MX
Developer’s Guide
History
ColdFusion MX 7: Added this function.