If ... else ... but adding a condition (?)

Recommended Posts

Diana (Cda) 1

Diana (Cda) 1

I can manage some If conditions now but if more than a couple of conditions need to be met, still getting myself into a mess <g>.

I have a script that opens a folder on the hdd _and_ on the USB flash drive, if the memory stick is plugged in. To make it a tad more challenging, I don't like Windows Explorer so have a WE replacement to open folders. Since I like to overcome errors right from the get-go, one condition is to open with WE _if_ the replacement isn't available for whatever reason (i.e., after a wipe/reinstall and I haven't yet installed the replacement). But I don't know how to prevent the scripts from popping up a couple of error boxes if another condition isn't met, when the memory stick isn't plugged in. When the USB flash drive isn't available, the script should just ignore that command and close. That's where I'm stumped though. Here's the pertinent part of these types of scripts: