I know how to check one with
Code: Select all
If [ $CBOX3 = "true" ] ;then #Checkbox checked for USB
if [ $CBOX4 = "true" ] ;then #If Checkbox for internal drive is checked
if [ $CBOX1 = "true" ] ;then #Checkbox checked for format
run function
fi
fi
else
display message
fi
So how do I implement and or on them
Opps! that was three. But can I shorten that.
But can I combine them with an and to signify both need to be true?
Suggestions welcome.
I am on the final lap of creating one program that will format both internal and USB floppy disks.