Posted 20 May 2012 - 10:12 PM
Variableception :P/>/>
But I know how in php you can just go myvar$x and if x was 10 it would be myvar10 and try to read that. So i know in lua it uses ..x.. as the escape key for variables in strings. but how would this work in variable names?
Heres what i tried but it didnt work with the unexpected smybol error.
But I know how in php you can just go myvar$x and if x was 10 it would be myvar10 and try to read that. So i know in lua it uses ..x.. as the escape key for variables in strings. but how would this work in variable names?
Heres what i tried but it didnt work with the unexpected smybol error.
x=1
while x<5 do
if out..x..==1 then
res=res+1
end
if out..x..==0 then
dom=dom+1
end
end
i have out1,out2,out3 and out4 as variables. and want to bulk read them.