People have been great on here so far. Done searching (although invariably not extensively enough!). Why doesn't this work?
if [%_dpsUserUpdate%] == [false] if [%_dpsUserPrompt%] == [false] (
echo Both User Update and Prompt set to false. Run 7z silently.....
7z e "%_file%" -y > nul
) else (
echo Either User Update and/or Prompt set to true. Run 7z gui.....
7zG e "%_file%"
)
Aim - if Update and Prompt both set to false, run 7z. Otherwise (for remaining 3 permutations) run 7zG. Works for "false and false" but not for other 3 combinations....
Of course, i could stick a "goto" in there, but that always feels like 'bad' coding (dunno why!).