For example, in python an if statement can be made like this: if example3 == 1 or example 4 == 1: print("Test")
Is there anything equivalent in c#?
For example, in python an if statement can be made like this: if example3 == 1 or example 4 == 1: print("Test")
Is there anything equivalent in c#?
In C#, the or operator is ||. So something like
if (foo == 1 || foo == 2) {
// do something
}