Learn Bash Scripting By Building Five Programs

I’m working on the Bingo Generator in the Relational Database Certificate pathway. I’m working on the coderoad page where I am setting up an “if” statement to print "The next number is, " and then if it’s less than or equal to 15, it will include a B in front.

I’ve entered the code exactly how the Coderoad hint at the end has it, but it will still not pass. Am I missing something?

if (( NUMBER <= 15 ))

then

echo $TEXT B:$NUMBER

fi

I also have my variables set as TEXT="The next number is, " and NUMBER=NUMBER=$(( RANDOM % 75 + 1 ))

Can you try to reset the exercise using the reset button and then re-try?

1 Like