Is it possible to write a funcation + Arg in mikrotik ?

Is it possible to write a funcation + Arg in Mikrotik scripting?
if yes, please show me a very simple example.

Thanks,

It is not possible to define functions in ROS. However there are some workarounds:
*) http://wiki.mikrotik.com/wiki/Use_Functions_in_CMD_Script
*) use :parse command

The scripts run concurrently. If you want to run scripts as a subroutine, and use the values generated by the subroutine, you must wait for the called script to finish before using the variables. Here is a link to a thread that has the code to make the main routine “wait” for the subroutine to finish. The code description starts with my post, about five from the start.
http://forum.mikrotik.com/t/call-script-from-script/35462/1