SyntaxFix
Write A Post
Hire A Developer
Questions
To add to this you can also use inline if condition with && and || operators. Like this
var a = 2; var b = 0; var c = (a > b || b == 0)? "do something" : "do something else";