Code: <% fremark="" do while not rsdoc.EOF if trim(rsdoc.Fields("fsourcedocno"))=trno then -------Condition 1 [B]fremark=fremark&","&rsdoc.Fields("fsourcedocno")[/B] else if fremark<>"" then -------Condition 2 response.Write("Hello, how are you") response.end end if fremark=rsdoc.Fields("fsourcedocno") end if rsdoc.movenext loop %> Why I cann't get the "Hello, how are you" message if the Condition 1 is false? Can somebody help me to solve it Or change the logic inside..I think the fremark is not a empty string..
Code: fremark=fremark&","& means that fremark is not empty but contains comma "," in the first run of the while loop.