lua-users home
lua-l archive

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


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