From a PS script, I am calling a primalforms dialog box err.ps1, but I don’t know how to return to the main script which button the users clicked on err.ps1 (Yes/No).
if (.{.\errDestination.ps1})
Doesn’t seem to return the value being true as yes or false as no…
Any idea where should I set the return result?
You have to edit the generated code a bit to return the
DialogResult. I put this at the bottom:To evaluate it form the calling script: