How to validate the error message in Katalon for multiple data set

I want to validate the data set on the input field whether they are accepted or not. I have tried with for loop but is there any other way to do that.
Thanks