lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]




On 14 September 2010 18:21, Martin Voigt <voigt.m@googlemail.com> wrote:
>     Since Lua is an applicative language both branches would be evaluated.

Whenever that becomes an issue i usually wrap the branches in quotes
and evaluate them in the function depending on the condition.

Yuk. Just use if/then/else, in that case.

Paul