Using WebStorm to create condtionals with logical operators