OK so I\'m a beginner with C# and I am having trouble understanding the if statement below.
For this example INumber is declared as 8, dPrice is 0 and dTAX is 10.
In English, this reads as: If iNumber is not 8 OR iNumber is not 9. iNumber is 8, which IS NOT 9 (your second check), so it drops into the if block.
You're describing an AND condition where it doesn't equal 8 and it doesn't equal 9.