how to use ternary if else with two or more condition using \"OR\" and \"AND\" like
if(foo == 1 || foo == 2) { do something } { e
For three conditions use:
value: (i == 1) ? 1 : (i == 2) ? 2 : 0