Inline if statement / ternary operator?

Is there something like an inline if statement in lua?

Like in js for example:
((a < b) ? 2 : 3)

Nope, unless you count this

If A then B else C end

Also you can try this:

x = A and B or C

where A is the condition and B and C are the two outputs.

Neat! B)

Excellent, thanks!