Returning nil with ternary operators?

local t = {}

local expression = if #t > 0 then t else nil

if-then-else works fine for this

2 Likes