Essentially I need to start my conditional using by implying 3 different conditions.
If the exit code is 1 or 2 or 3 they script must do something if anything else do something else:
if ( $LASTEXITCODE -eq 1 or $LASTEXITCODE -eq 2 or $LASTEXITCODE -eq 3 or ) {
}
What is the correct syntax for the code above?
-oris the operator. Use anelsestatement for the other conditionlastexitcodeis 1, 2, or 3. Is this intended or were you looking forelseif?if ( $LASTEXITCODE -ge 1 -and $LASTEXITCODE -le 3)