Using if and else statement to create conditional statement in WebStorm Editor.