[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Request for help on extending if statement (lparser.c)
- From: Sam Roberts <vieuxtech@...>
- Date: Tue, 27 Oct 2009 15:07:36 -0700
On Tue, Oct 27, 2009 at 3:01 PM, Alexander Walz <agena.info@t-online.de> wrote:
> I am trying to add an extension to the if .. then .. elseif .. end statement
> that will always be executed if at least one of the if/elseif conditions
> evaluates
> to true - to save some code if every `then` clause contains equal
> statements.
Could you give an example of the syntax you want to implement? It
sounds like just using
and will work for you:
if cond
and condb
and condc
and condd
then
equal_statements()
else
other_statements()
end
You also might want to check out metalua as an easier way of hacking the syntax.
Cheers,
Sam