Login  Register

VAR Variables

Posted by Carl Sebeny on Sep 17, 2008; 12:54pm
URL: http://imagej.273.s1.nabble.com/VAR-Variables-tp3695055.html

Why does the following macro code display the result
of 10 instead of 20?

var x;
x=10;
f();
print (x);
exit("Terminating normally...");
function f(){
    x = 20;
}