PowerShell: Decisions

Example: Simple Decision Statement in PowerShell


	$x = 101
	if ($x -gt 100)
	{
		write-host "Correct"
	}
	Else
	{
		write-host "Incorrect"
	}
	

Output:

  Correct