I am new on Lua, the following is a string:
...
Test 1
abc 30
bcd 40
cde 50
...
Test 2
abc 30
bcd 40
cde 50
...
I wanna get the Int of each Test, how should I managed to achieve this? any suggestion will be appreciated!!!
I am new on Lua, the following is a string:
...
Test 1
abc 30
bcd 40
cde 50
...
Test 2
abc 30
bcd 40
cde 50
...
I wanna get the Int of each Test, how should I managed to achieve this? any suggestion will be appreciated!!!
Generally,
a = "5"
can be converted into number using tonumber function.
val = tonumber("5") or val = tonumber(a)
gives 5 as a number from "5" which was string previously.