Frequently Asked Questions (FAQ)
What is the difference between a Command File and a Script?
A Command File is a simple list of STN Commands which you can run with STN on the Web or with the STN Express Command Window.
A Script (STN Script) is an advanced Command File with all advantages of the STN Script Language.
Comments
The main differences being
A script file can have:
- Conditional statements (IF ... THEN ... ELSE), one can check for certain results, errors or artefacts and eventually stop the script
- Loops (GOTO combined with IF)
- Named variables, making references to earlier result sets easier
- Another data file as input for variable values, making changes for the next use only necessary for the data file and not the script itself
etc, etc
Post a comment
A script file can have:
- Conditional statements (IF ... THEN ... ELSE), one can check for certain results, errors or artefacts and eventually stop the script
- Loops (GOTO combined with IF)
- Named variables, making references to earlier result sets easier
- Another data file as input for variable values, making changes for the next use only necessary for the data file and not the script itself
etc, etc