Make it like this:

Code:
function test()
{
var calculated_var;
.....
while(1)
{
if (on_mouse == 1)
{
}
if (calculate_a_var()==1)
{
do something;
}
}
}



You can rename calculated_var with anything. The name doesn't metter.

Last edited by Razoron; 12/22/09 15:37.