Passing $args[x] in an if statement in .ps1 (PowerShell) does not seem to work when it does not exist

后端 未结 0 715
情歌与酒
情歌与酒 2020-12-02 10:50

Suppose I have the following testArgsX.ps1 file:

$ARG_X_PARAMETER=1
If ($args[0] -ne "") {
    echo ARGS[X]="`"$args[0]`&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题