Question

Which of the following is the syntax for an `if` statement checking if a variable `NUM` is numerically equal to 5?

A `if [ $NUM == 5 ]; then ... fi`
B `if ($NUM = 5) then ... end if`
C `if [ $NUM -eq 5 ]; then ... fi`
D `if $NUM -eq 5 then ... fi`
E None of these
Practice Next

Hey! Ask a query