The two statements are equivalent. Re-read section 3.3.
=(function() if not nil then return nil else return 1729 end end)()
nil
=(not nil and nil or 1729)
1729