Which of the following is used in PowerShell to test if the left value in a condition statement is greater than the right value? code example
Example: powershell if operator
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 than