Changing the value of variable in regards to some event

Lets say I have following code

var range = 0.1;

and a function that has to internally change the value of that variable;

function someFunction(){
}

How can I change the value of the range variable to be lets say 0.4 inside this function?

Your question is a bit vague.

if you don’t know HOW to call a function i recommend reading the scripting tutorials.

basically you just put it’s name.

so:

someFunction();

will cause it to be called.

function someFunction(){
var strange = range;
range = 0.4;

    ///////////
    //Do stuff
    ///////////

    range = strange;
}

TA DA!