Hello. I am wondering if it is possible to have two conditions for an if statement. It would be some thing like:
int a = 1 ;
int b = 2 ;
if (//a = 1 and b = 2, how do you write this?)
blah blah blah
Any replies would be appreciated. Thank you!
if(a and b or b and a)
What is the purpose of that code DTSCode?
showing another way to do it. its meant for people that use different character set (hence the word iso) so if he was from say germany then it would still keep it c++ compliant
I meant the
a and b or b and a he was trying to do
a == 1 and b == 2
i was just showing an example of and and or without multiple ifs.