// Script showing how to get user arguments // Arguments: // (Arguments will be printed!) // // Author: LoopToGo // // Description : Example on how to use loadScript and loadScriptDynamic (and passing them arguments) // Must be called from testArgument.txt print testUserArgumentReceiver : $nbUserArgs arguments variable allVar "User Args:" // Important!It must have at least one char so the first concatenation works! for var 1 $nbUserArgs variable argName userArg & $var variable userArg $$argName variable allVar $allVar & " " & $userArg endFor print $allVar / Other way to print arguments print // Skip a line for var 1 $nbUserArgs variable argName userArg & $var print $argName : $$argName // Need 2 $. The firstone will create a variable name (arg1, arg2, etc.). The second will give the value or the arguments. endFor // We must reset the args for next use! setUserArgs