<cfset email = "john@example.com">
<cfset isValidEmail = isValid("email", email)>
<cfdump var="#isValidEmail#"> See the flaw? your code is asking if I have 2 values, but What are they, that is what ColdFusion is complaining about. so the above, in simplest terms, is saying HEY COLDFUSION, here is the email value, is it an email address, and ColdFusion says, Yes its email address.
Evil Ware
02/24/2023, 2:13 PM
(avoids long holywar flaming rant about cfscript)
b
bhartsfield
02/24/2023, 2:14 PM
huh...
bhartsfield
02/24/2023, 2:26 PM
he was just asking about using argumentCollection instead of explicit arguments. but, that is apparently not an option with isValid.
bhartsfield
02/24/2023, 2:26 PM
also, you should really use cfscript 😛
bhartsfield
02/24/2023, 2:26 PM
j/k-ish
e
Evil Ware
02/24/2023, 2:35 PM
CFSCRIPT is awesome, the best thing ever, keep writing confusing code that takes away from the whole point of COLDFUSION, nope, use something that is javascript but isn't javascript, but all but rips off javascript causing programmers to constantly blend the two making errors. Yup, write unmaintainable code as you know, that's what the general flawed consensus currently is.