Where is this scripting manual that is referenced in router documentation? The most current I can find is html based and is for 2.7. The scripting syntax seems to have changed since then.
go to this page:
http://www.mikrotik.com/docs/ros/2.9/
in your browser hit the CTRL+F keys
enter scripting
and you will find it:
excellent explanation.
I will add it to my personal dictionary 
Maximiliano Dobladez
Intercity SRL
Wireless Internet Service Provider
the biggest canopys implementation of sudamerica.
http://www.intercity.net.ar