Tests whether a value meets a validation or data type rule.
isValid(type, value, min, max, pattern)
→ returns boolean
any
array
binary
boolean
component
creditcard
date
email
eurodate
float
function
guid
integer
numeric
query
range
regex
regular_expression
social_security_number
ssn
string
struct
telephone
time
time
url
usdate
uuid
variablename
xml
zipcode
Use the isValid function with integer as the type.
isValid("integer", 235)
Expected Result: true
Use the isValid function with email as the type.
isValid("email", "user@example.com")
Expected Result: true
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.