14
Answers

Foreach Question

Rich

Rich

13y
1.4k
1
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)