res*_*101 -1 variables powershell if-statement conditional-statements
我有跟随代码片段的PowerShell脚本和嵌套的if语句没有被执行.你能告诉我为什么吗 ?我最近又回到了编程游戏,所以它可能很简单
$false.
$IgnoreThisLine = $false
$tmpString = "(DATUM CTR OF BLADE)"
$EndOfDescription = $null
$cncPrograms ="(165756 SIDE 1)"
if ($IgnoreThisLine = $false ) {
If ($tmpString -match '\(') {
$EndOfDescription = $false
$cncPrograms = $tmpString
}
else {
$EndOfDescription = $true
}
}
Run Code Online (Sandbox Code Playgroud)
if ($IgnoreThisLine -eq $false)
Run Code Online (Sandbox Code Playgroud)
"-eq"not"="用PowerShell测试是否相等.