powershell if operator

C++
if (condition1 -eq condition2) {
	//statement
} else {
	//statement
}

-eq	Equals to
-ne	Not equal to
-gt	Greater than
-ge	Greater than or equal to
-lt	Less thanif(Boolean_expression) {
   // Executes when the Boolean expression is true
}else {
   // Executes when the Boolean expression is false
}

Source

Also in C++: