+ 2
How to make chains of requirements in c++
I tried to make a chain of conditions by putting an if else inside of the else of another if else and it did an error. Is there another way to do this?
7 odpowiedzi
+ 2
It is possible to use an if else statement inside another if or else statement. Please share your code so we can try to find the problem.
+ 2
Deroman It worked this time I must have just forgot the semicolons at the end. Thanks for confirming it should work
+ 1
Deroman I realized that after realizing it didn’t work, i changed it a lot so im redoing it and ill say if it works or not
+ 1
Good luck buddy
+ 1
Have a look at logical AND (&&) and logical OR (||)...... It entirely depends on what you're trying to do.
+ 1
That's great, I'm glad I could help a little at least
- 1
I😇🤢