If

if [<value>] (<operator>) (<value>) (&&/||) (…)

Checks the specified conditions before allowing the following block of commands to run or not

Parameters:

  1. The value to be compared with something else, or the condition in the form of true or false directly.
  2. The comparison operator to be used between the previous and following value. This parameter can be optional if the first provided value returns true or false by itself.
  3. The value to be compared with the previous provided value. This parameter can be optional if the ifrst provided value returns true or false by itself.
  4. The logical operator to be used between any comparisons in the case of multiple comparisons in one if statement.
  5. Additional comparisons in the form of parameters 1 to 3.