Mondeo
Well-known member
I have this simple for each loop
For each row as datarow in dtResults.rows
Send the email
Next
Now I dont want to send the email everytime based on the value in one of the columns in dtResults, so I need
For each row as datarow in dtResults.rows
If row.item(0).tostring = "" then
Next
End If
Send the email
Next
However this will not compile, it there anyway I can call the next in two different places based on logic?
Thanks
For each row as datarow in dtResults.rows
Send the email
Next
Now I dont want to send the email everytime based on the value in one of the columns in dtResults, so I need
For each row as datarow in dtResults.rows
If row.item(0).tostring = "" then
Next
End If
Send the email
Next
However this will not compile, it there anyway I can call the next in two different places based on logic?
Thanks