PowerShellConditional logic


Syntax

  • if(expression){}
  • if(expression){}else{}
  • if(expression){}elseif(expression){}
  • if(expression){}elseif(expression){}else{}

Remarks

See also Comparison Operators, which can be used in conditional expressions.