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
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
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 "".
If the query has no records then the code inside the loop will NOT get
executed. CF checks for remaining records at the beginning of the loop, not
the end,
3 matches
Mail list logo