Hello i have an inputtextfield were i want to put figures for example 100 to have a script loop for 100 times, but im getting an error all the time. When putting a number at the place it does run normal, i'm trying to feed it with a number from the textbox.
for (var i = 0; i < (textBox2.Text); i++)
{
code in here
}
Here's the error : Error 1 Operator '<' cannot be applied to operands of type 'int' and 'string'
What am i doing wrong? Can someone help me??