lua-users home
lua-l archive

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


Soni They/Them L. <fakedme@gmail.com> wrote:

> 
> 
> On 2018-01-28 12:04 PM, Paige DePol wrote:
>> Soni They/Them L. <fakedme@gmail.com> wrote:
>> 
>>> I want a switch where you can use math.random() in switch cases and it
>>> lazy-evaluates them and just works.
>> What practical use would that even have?
>> 
>> ~Paige
> 
> It's equivalent to if...elseif chains and supports ==

I meant using math.random() as a case value. 

I think I'd need to see a code example of what you mean
to understand how this switch block would work.

~Paige