More on Conditionals

  • + 0 comments

    read X Y Z

    X=((Y)) Z=$((Z))

    if [[ Y && X ]]; then echo "EQUILATERAL" elif [[ Y || Z || X ]]; then echo "ISOSCELES" else echo "SCALENE" fi

    Output: I am getting ISOSCELES as output What is the issue with this code?