Why not just create a function that calls the correct function based on the
supplied argument?

<cffunction name="validateZip">
    <cfargument name="country">
    <cfargument name="zip">

    <cfswitch case="#Arguments.country#">
        <cfcase value="US">
            <cfset validatethezip(Arguments.zip)>
        </cfcase>
    </cfswitch>
</cffunction>

<cffunction name="validatethezip">
    <cfargument name="zip">

    <cfset var something=''>
    <cfset var validatethezipreturn=false>

    <cfif arguments.zip is something>
        <cfset validatethezipreturn=true>
    </cfif>
    <cfreturn validatethezipreturn>
</cffunction>


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to