First, if someone does not enter anything in the Input box and clicks OK, I would like the script to go to some label (End in this case). I tried using:
Code: Select all
If>%Incident%=NULL,End
Second, how do I handle cancel? I would like to go to a label (End in this case but that may change). I used a message> to see what my %Incident% variable is on the cancel event but it seems as though it's NULL. Is there a way to determine if the cancel is selected rather than looking for null (which I couldn't figure out above anyway)?
Here is a complete example of this section of the script:
Code: Select all
Input>Incident,Please enter your incident number
If>%Incident%=NULL,End
Label>Check
IfDirExists>c:\mpm30\sys\%Incident%,Open
Ask>Folder does not exist.%CRLF%%CRLF%Do you want to create this folder?%CRLF%%CRLF%c:\mpm30\sys\%Incident%,continue
If>continue=YES,Create,End
Label>Create
CreateDir>c:\mpm30\sys\%Incident%
Label>Open
Run Program>Explorer c:\mpm30\sys\%Incident%
Label>End