Ternary operator / unlessShort if/else and inverse condition.Syntaxcondition ? a : bDescription? : is short if/else. unless means 'if NOT' (the opposite of if).ExampleLoading editor…▶ Try it yourselfExpected outputadultWhen to use?Short conditional value.Related commandsif / elsif / else← if / elsif / elsecase / when →