 The computation of the script is done in its #compute method.For example, to calculate the square of a number, the script

compute
"returns the square of a number"
^ self arg1 valueItem squared
creates a numeric object, whose value is the square of the argument number object.Whenever the first number is changed, the script returned value changes too.