[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: if-else
- From: Sam Roberts <vieuxtech@...>
- Date: Mon, 12 Apr 2010 13:58:58 -0700
On Mon, Apr 12, 2010 at 1:55 PM, cynthia powers <powcyn@gmail.com> wrote:
> Hi,
>
> What's the easiest translation to convert the following c to lua? or do I
> have to make this into a if-else block.
>
> x = ((vXSTX > vXSX) || (vXSTX > vXSY)) ? (vXSX + vXSTX) : vXSX;
x = ((vXSTX > vXSX) or (vXSTX > vXSY)) and (vXSX + vXSTX) or vXSX