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?
12/10/2019 5:49:27 PM
Christian09727 Answers
New AnswerIt 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.
Deroman It worked this time I must have just forgot the semicolons at the end. Thanks for confirming it should work
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
Have a look at logical AND (&&) and logical OR (||)...... It entirely depends on what you're trying to do.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message