For this requirement you don't need to write an exit . You should create a second variable (-1) and setting the offset at -1 . Right Click on Variable --> Restrict --> Setting Offset --> Choose -1.
You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
Add a comment