lua-users home
lua-l archive

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


you can force the conversion with :

$ lua
Lua 5.1  Copyright (C) 1994-2006 Lua.org, PUC-Rio
> =(235=="235"+0)
true

appending a +0 to a string  will force the conversion to a number.

--
   PpluX

El 17/05/2006, a las 7:02, Damian Stewart escribió:

Damian Stewart wrote:
aah. it seems id is a string but arm_id is a number.
i thought lua converted automagically between the two types..?

oh. i should rtfm a little more.. ;-)

--
f r e y
live music with computers
http://www.frey.co.nz