lua-users home
lua-l archive

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

> local todnew_query = string.format("select
> priority,dayofmonth,month,year,dayofmonth from timeofday_new where
> todname='sales' order by priority;")
>                                    assert
> (dbh:query(todnew_query,function(todresult)

> Now with using the function it loops through the rows, in this
> case, priority 1 and 2 rows, but if I match on the first entry with an if statement, such as;

It  hard  to say if you do not say which lib you use. I assume you use
FS.  If  so just return any number > 0. Otherwise read the doc/source.
Or try return different values

С уважением,

Это сообщение проверено на вирусы антивирусом Avast.