14
Reply

Foreach Question

Rich

Rich

Oct 5 2011 6:24 AM
1.4k
Greetings,
 
I am new to c# programming.  Is it possible to include a conditional if else statement nested within a foreach iteration.  I've been working on this the last couple of days to no avail.  The if part of the statement works, but the else statement seems to get skipped.  Just need some confirmation on the matter. Thanks in advance to all.

Rich

Answers (14)