I was working in a scene and when I went to the script editor and programmed some lines to test something. When I was done I went to run it but nothing happened. The code I had written was ignored. I thought it was an error on my part but I scripted the change of a value it didn't work. What I wanted to do was find the average of two values and place that in one variable, but for some reason I couldn't even get simple code to register.
What I wanted to work on the script editor of a variable
dim v1
dim v2
Scene.GetObjectByName("Stat Input 2", v1)
Scene.GetObjectByName("Stat Input 5", v2)
text = v1/v2
this did not work. When I went to trouble shoot it I attempted just running this line of code by itself with nothing else
text = 6
That also did not work. It stayed the value it was before. I don't understand. The thing that really throws me of is that I used this same code on another project and it worked flawlessly. If it makes a difference the variables that I am averaging are being inputted by a html. The variable that I am modifying is also being inputted by the same html.