This is my Bash script

  # if not available
  if [[ -z $BIKE_AVAILABILITY ]]
  then
    # send to main menu
  fi

was trying to do this.
The variable will be t or empty. Below the if not available comment, add an if condition that checks if it’s empty. Put the send to main menu comment in it’s statements area.

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

is this for the freeCodeCamp curriculum? what are you working on?

1 Like