Synopsis:
task_getpid(arg_num)
Arguments:
arg_num - The argument number to return.
Description: This call returns the value of the argument number arg_num passed to the task by the parent task through a call to task_spawn(), task_exec() or task_chain().
Arguments are numbered from 0 through to 15, where argument 0 returns the name of the calling task (i.e. the name of the .TEX byte code file). Arguments 1 through to 15 are the arguments passed the call to task_spawn(), task_exec() or task_chain(). If an attempt is made to get the value of an argument that was not passed by the parent task then the function will return an empty string “”.
Return Value:
Will return the name of the TEX byte code file if argument 0 is specified, otherwise will return the argument 1 through to 15 passed to the task from the parent task (or an empty string “”).