I have the following code, but it somehow looks a bit redundant. As I am new to ColdFusion, I am not sure how to optimize it. Can someone suggest an alternative?
<cfparam name="url.idInfopage" default="0">
<cfif not isNumeric(url.idInfopage)><cfset url.idInfopage= 0></cfif>
<cfif isDefined("stElement.idInfopage") and isNumeric(stElement.idInfopage)>
<cfset idInfopage= stElement.idInfopage>
<cfif idInfopage is ""><cfset idInfopage= 0></cfif>
<cfelse>
<cfset idInfopage= url.idInfopage>
</cfif>