like this
<cfparam name="url.x" default="0">
<cfset x = 20>
<cfset form.x = 40>
<cfdump var="#x#">
m
Matt Jones
11/08/2024, 6:39 PM
you should be getting 20 there, are you not?
Matt Jones
11/08/2024, 6:43 PM
you are setting three different things. the unscoped lookup is finding variables first. for the scopes you provided, it is using the sequence of variables, url, form when trying to locate.
g
gsr
11/08/2024, 7:00 PM
Correct but the behaviour was weird when I expected confusion to return me variable value but it keep returning me 0