How to validate database column value

This guide might help you!

https://docs.katalon.com/katalon-studio/docs/control-statements.html

Set everything you get from your database into variables and use those for your control statements.

Edit: If you want some examples look here: Control Statements