Posted: Wed 21 Oct 2009, 23:39 Post subject:
GTKdialog variable tests Subject description: 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. Last edited by 8-bit on Thu 22 Oct 2009, 03:30; edited 1 time in total
Posted: Thu 22 Oct 2009, 03:29 Post subject:
Subject description: SOLVED
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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum