I have a "source" and a "dest" variable using "@set ... dlgchoose". What I need is, if source is set to "Path1", dest should be automatically set to "Path2" and otherwise. Is this possible (maybe ifset, ifpath?)?
I don't want to set "dest" manually to avoid mistakes when choosing between Path1 and Path2.
For example I have Opera on PC and Tablet. If I change the settings on one device (e.g. passwords, bookmarks, notes), I make a local backup and copy them also to the other device and its backup-folder to have all devices using same settings (the folder-structure is also completely the same on both). It's a simple command, if "dest" would be automatically set to the other device that's not defined as "source". Until know I used to buttons for each device, but it would be nicer to have one and I could modify this also for other operations, if I would have one working solution.
Example for one file to be copied:
copy "\\{$source}\c$\programfiles\opera\example.txt" to "\\{$dest}\c$\programfiles\opera\" FORCE
copy "\\{$source}\c$\programfiles\opera\example.txt" to "\\{$dest}\d$\settings\opera\" FORCE
copy "\\{$source}\c$\programfiles\opera\example.txt" to "\\{$source}\d$\settings\opera\" FORCE
Does DOpus' internal sync not work for you? It seems you are trying to work hard manually, when really automation is more robust and reliable.
It is not clear to me that your proposed solution is generally useful. How would it handle the cases where there are more than an either/or situation? For eample, you select X from your pick list assigning it to A, and then need to set variables B, C and D.
I think this is why Leo suggests a scripting language - DOpus shouldn't reinvent the wheel.