[thelist] CFTRY/CFCATCH

matthew garrett matthew.garrett at snet.net
Tue Mar 26 12:17:09 CST 2002


> From: Starkey Connie - cstark <Connie.Starkey at acxiom.com>

> In the following code, I want to look at the volume discount percent and
> amount fields and if they are blank, to default them to 0's.

How 'bout:

<cfset percent = #trim(listgetat(qBillingView.volumediscountpercent,x)#>
    <cfif percent IS ''>
        <cfset percent="0">
    </cfif>
<cfset amount = #trim(listgetat(qBillingView.volumediscountamount,x)#>
    <cfif amount IS ''>
        <cfset amount="0">
    </cfif>

i think that would do it.

matt g




More information about the thelist mailing list