Multiple choice technology programming languages

if statement needs to end with end if

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Shell scripting if statements end with 'fi' (the word 'if' reversed), not 'end if'. The syntax is 'if condition; then commands; fi'. The 'end if' syntax is used in some other programming languages but not in shell scripts.