Content deleted Content added
→Undefined input ('foo'): empty string as regular example |
|||
Line 71:
yesno({})
yesno(5)
yesno('')
yesno(function() return 'This is a function.' end)
yesno(nil, true)
Line 79 ⟶ 80:
yesno({}, true)
yesno(5, true)
yesno(function() return 'This is a function.' end, true)
Line 85 ⟶ 87:
yesno({}, 'bar')
yesno(5, 'bar')
yesno(function() return 'This is a function.' end, 'bar')
▲yesno('', true) -- Returns true.
▲yesno('', 'bar') -- Returns "bar".
</syntaxhighlight>
|