Answers for "if clauses bash"

0

if clauses bash

#!/bin/bash

echo -n "Enter a number: "
read VAR

if [[ $VAR -gt 10 ]]
then
  echo "The variable is greater than 10."
fi
Posted by: Guest on April-04-2021

Browse Popular Code Answers by Language