How to Exit a test Case and/or test suit

If I want to conditionally exit out of a TC and/or Test suit then what is the approach?

How about trying com.kms.katalon.core.util.KeywordUtil#markFailedAndStop(String message)


Thanks a lot for your suggestion.

What if I am deep in an test case tree. If there a if statement is true I want to stop the whole test case but with a success?
How can I set up this exit strategy without implementing this if statements also in the following test cases?