how to make if statements for one if statement to run js code example
Example: one line if else if statement javascript
var variable = (condition) ? (true block) : ((condition2) ? (true block2) : (else block2))
var variable = (condition) ? (true block) : ((condition2) ? (true block2) : (else block2))