参数的临时变量

Temporary variables for parameters

在AutoIt中,在Windows cmd批处理脚本中是否有接收参数的临时变量,如%1%2%3等?比如在cmd批处理中:

call :func %var1% %var2%

:func
echo "var1 is %1"
echo "var2 is %2"
goto :eof

… are there any temporary variables for the received parameters …

根据Documentation - Keywords - Func...Return...EndFunc

The parameters are set by you. You later call the function like any other built-in function.

示例:

FunctionName('value1', 'value2')

Func FunctionName($var1, $var2)
    ConsoleWrite('var1 = ' & $var1 & @CRLF & 'var2 = ' & $var2 & @CRLF)
EndFunc

Returns:

var1 = value1
var2 = value2