https://tutorial.eyehunts.com/js/javascript-if-then/
JavaScript if then