04-12-2026, 06:01 AM
I understand that the N7 val() command returns the value of a table element, but I am trying to convert a game that uses val(), in the traditional sense by returning the value of a string. eg: val("2") equals 2
Any ideas?
Thank you.
J
Any ideas?
Thank you.
J
Logic is the beginning of wisdom.



Use "int(x)" or "float(x)" to convert something to a number! There are no integers in n7, but int("2.31") converts "2.31" to a number and then removes the fractional part.