User talk:JulienDethurens/Essays/Pseudo Ternaries
From Legacy Roblox Wiki
Jump to navigationJump to search
Other forms
({[true]=x, [false]=y})[condition]
(condition and function() return x end or function() return y end)()
Both of these work when x and y are not truthy, unlike the standard form.