CF skips the whole code within the loop.  You'll have to trap for no records.

<cfif qryResults.recordcount>
        <!--- loop code here --->
<cfelse>
        <!--- alternate code --->
</cfif>

Sharon

At 01:56 PM 5/1/2000 -0400, Miriam Hirschman wrote:
>If I am looping through a query and the query did not have any results, dose
>CF skip the whole code, or does it go inside and hold a "".
>
>For example:
>If qryResults has 0 records.
>
><cfloop query="qryResults">
>       <cfif Field1 is not Email>
>               do this
>       <cfelse>
>               <cfbreak>
>       <cfif>
></cfloop>
>
>Thanks,
> 
>     ---miriam
>
>---------------------------------------------------------------------------
---
>Archives: http://www.eGroups.com/list/cf-talk
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarstsbodysts/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
> 

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to