cfloop-Please answer

2000-05-01 Thread Miriam Hirschman
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

Re: cfloop-Please answer

2000-05-01 Thread Sharon DiOrio
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

Re: cfloop-Please answer

2000-05-01 Thread Seth Petry-Johnson
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,