Rich

Rich

  • NA
  • 84
  • 60.9k

Foreach Question

Oct 5 2011 6:24 AM
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)