Pre-scripts run before the execution of the session. Users can write custom code and these codes will be copied into init_script.c or init_script.java or init_script.js according to script type, so that it will run before the script session execution.

### Global Action Item

Pre Script has the following action items:-

- Save and Compile:Users can save modified pre-script and validate the script through the save and compile button at the bottom of the Pre Script UI. After clicking the save and compile button, when the pre-script is successfully compiled, there will be a success message “Pre-script compile successfully”. And when the pre-script doesn’t compile successfully, there will be an error message “Compile Failed Error Message (received from script compilation). These messages will come in a toaster and stay for 10 sec.