lua-users home
lua-l archive

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


How to create new variable from mount name?

Trink.   multiples variables and fix sufix     ??.large , ??.small ??.tiny

check(S1) ---other file call function
---------
function check(sensor)
if not (sensor .. ".large" == nil) then    <--ok not error       var -> S1.large
         sensor .. ".tiny" = 20     <--- get error               var->  S1.tiny 
end
print( sensor .. ".tiny") --print
end --end function

Or sugest corret implementation: clear, direct ,not complex.





		
_______________________________________________________ 
Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! 
http://br.mobile.yahoo.com/mailalertas/