I have an if elif elif else fi statement I want to convert to a case statement in bash scripting. Here is the code:

```
if [[ -n $1 ]] && [[ -n $2 ]] && [[ -n $3 ]]; then
    # sudoed audit or fsr w/ IP: set user, user home directory, IP.
    CURR_USER="$1";
    CURR_HOME="$2";
    ADDR="$3";
  elif [[ -n $1 ]] && [[ -n $2 ]] && [[ -z $3 ]]; then
    # sudoed audit or fsr w/o IP: set user, user home directory.
    CURR_USER="$1";
    CURR_HOME="$2";
    ADDR='';
  elif [[ -n $1 ]] && [[ -z $2 ]] && [[ -z $3 ]]; then
    # root w/ IP: set audit user, audit home directory, IP.
    CURR_USER='audit';
    CURR_HOME='/home/audit';
    ADDR="$1";
  else
    # root w/o IP: set audit user, audit home directory.
    CURR_USER='audit';
    CURR_HOME='/home/audit';
    ADDR="";
  fi

```

I tried the following and it didn't work

```
case $# in
   [[ -n $1 ]] && [[ -n $2 ]] && [[ -n $3 ]] )
    # sudoed audit or fsr w/ IP: set user, user home directory, IP.
    CURR_USER="$1";
    CURR_HOME="$2";
    ADDR="$3";;
  [[ -n $1 ]] && [[ -n $2 ]] && [[ -z $3 ]] )
    # sudoed audit or fsr w/o IP: set user, user home directory.
    CURR_USER="$1";
    CURR_HOME="$2";
    ADDR='';;
  [[ -n $1 ]] && [[ -z $2 ]] && [[ -z $3 ]] ) 
    # root w/ IP: set audit user, audit home directory, IP.
    CURR_USER='audit';
    CURR_HOME='/home/audit';
    ADDR="$1";;
  *                                         )
    # root w/o IP: set audit user, audit home directory.
    CURR_USER='audit';
    CURR_HOME='/home/audit';
    ADDR="";;
  esac
fi

```

The reason why I need a case statement is my boss thinks a case statement will be easier to understand down the road than an if elif else statement