how to use ternary if else with two or more condition using \"OR\" and \"AND\" like
if(foo == 1 || foo == 2) { do something } { e
Try below
(2 > 3)?print("It is more than 3"):print("It is less than 3"); ////Prints It is less than 3 to the console