There are examples of this scattered throughout the board over the years, but finding them can sometime be tough. Depending on your needs...

most basic would be
 Code:
if instr(@producttype,"Windows 10")
  exit 0
endif


Or with a Select Statement...
 Code:
Select 
  Case instr(@producttype,"Windows 7")
    ;do stuff
  Case instr(@producttype,"Windows 8")
    ;do stuff
  Case 1
    ? "OS not covered"
    Exit 0
Endselect


Create a copy of your script and rename it. Then you can easily test it without worry of effecting production code.


_________________________
(... better days ahead)