Posted: Wed 21 Oct 2009, 23:39 Post_subject:
GTKdialog variable tests Sub_title: Testing more than one variable in one instance. SOLVED
How would one check to see if two variables were true before calling a function?
I know how to check one with
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
Also, $CBOX3 and $CBOX4 cannot both be true.
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?
I am on the final lap of creating one program that will format both internal and USB floppy disks. Edited_time_total
Posted: Thu 22 Oct 2009, 03:29 Post_subject:
As Gomer Pyle said,
That bit of information helped in finalizing the program other than going back through and indenting.
As you might of gathered, I am a hit and miss programmer.
I try something and keep changing it until it works.
But the final result is a program that will format both internal floppy disks and external USB floppy disks.
It might even be good enough for inclusion in a new Puppy release.
I had previously uploaded 2 versions just for USB drives.
This one goes beyond that.