Setting a variable to any integer/decimal

QuestionsSetting a variable to any integer/decimal
sethbeckerman5 Staff asked 4 years ago

I am trying to set a varying scroll speed that can be changed by a set input, but I need to figure out how to set a possible variable to equal any integer/decimal so that i can set the scroll speed to equal that variable.
I tried to make it so that it detects whether the input is a integer/float or a string, and if it was a int/float, it would make the scroll_speed variable equal to the input. It looked something like this.


View on Stack Overflow