title: How do I make this Bash argument from an if statement into a case statement?
body: <p>I am using a text file called tps_report2 and I want to print out the statement "Please complete the $assignment_name assignment" where the variable $assignment_name would be a name of an assignment, however, if the user leaves the parameter empty, then it would have the variable fill in the word "following" as a default argument.</p>
  
  <p>Here is the correct if else statement:</p>
  
  <pre><code>   if [ $# -lt 1 ]
     then
           assignment_name="following"
     else
           assignment_name=$1
     fi
  </code></pre>
  
  <p>Now here is what I tried so far to turn it into a case statement.</p>
  
  <pre><code>   while [$# -lt 1]
     do
          case assignment_name
          in
          *) assignment_name="following"
          esac
     done
  </code></pre>