In your external script the var is a number, but when the number comes in from the ini it is a string. The engine has been like this for ages.