Using if and else if to create conditional statements in WebStorm