Halt script if no records found
I have a Button Setup that Triggers a defined scripted Find Search. At the end of the script it calls for a change in layout and directs to a Tab Panel for the results. I do not want to be directed to a tab panel unless there are records found. If the find has no returns, I would like for the message “No records match this find criteria” to appear. I do not want to be directed away from my present layout. How do I halt the script if no returns appear before running the last line in the script?