lua-users home
lua-l archive

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


On Tue, Dec 16, 2008 at 1:33 PM,  <adimurthy.sriramulu@wipro.com> wrote:
>
> Hi,
>
> I am using the function string.find(string.sub("12 N Y",1,2),slot) in my
> design.
>

If it's only numbers, you could say

tonumber(string.sub("12 N Y",1,2)) == tonumber(slot)

Robby