[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua idiom: iteration with skips?
- From: Wim Couwenberg <w.couwenberg@...>
- Date: Sat, 22 Apr 2006 22:34:02 +0200
> if ( math.floor(v/2) == v/2) then
Note that Lua 5.1 introduced the % operator, so this can be written as
if v%2 == 0 then
--
Wim