https://tutorial.eyehunts.com/js/nested-if-statements-javascript-simple-example-code/
Nested if statements JavaScript | Simple example code