Command to terminate a script...!!!

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

mohitshu

Command to terminate a script...!!!

Post by mohitshu »

Command to terminate a script...!!!
pfaffenbichler

Command to terminate a script...!!!

Post by pfaffenbichler »

Care to elaborate?
mohitshu

Command to terminate a script...!!!

Post by mohitshu »

Hi

If I want to terminate a script at any line so that the compiler wont read anything below.
Just Like Code: Select allbreak; is a terminator to terminate the loop.
pfaffenbichler

Command to terminate a script...!!!

Post by pfaffenbichler »

What are you really trying to achieve?
When a Script runs the individual lines may be performed so fast that the exact manual termination at a specific position of the Script seems difficult to achieve.
If you just want to stop a Script without manual input wrap it in a function and insert
return
at the appropriate position.

I assume this would have to be connected to an if- or switch-clause for example, otherwise the subsequent lines (except functions that are called earlier) would probably make no sense.