The main program LISTING 1 of the scilab sheet planx.sce declares a lot of variables as global ones, and then displays a menu of possible actions (cf FIG. A.1).
A function who wants to write into a global variable must declare it as global. Otherwise, the function can only read this variable (and afterwards, the function is only acting upon a local copy).