Conditional commands inside button: Run different commands depending on whether files are selected

Running this script button de-selects my selected files, so I started this discussion:

[url]@NODESELECT in VBScript script button?]