I have declared one variable IS_abc=false, on basis of certain condition I am changing value to IS_abc=true
IS_abc=false
declare -a my_arr
my_arr = ('abc' 'pqr' 'xyz')
....
.... // some operation
IS_abc=true
for i in "${my_arr[@]}"
do
//here i want to access value of $IS_abc as true
//how to do this
done
I have tried accessing using $IS_'$i' , but it raising error as invalid substitution
Tell me if I am doing anything wrong here?