IF else statement documentation

Good evening, I was wonder where I can find documentation on IF / else statements. I am new to Katalon Studio and I am having trouble finding instructional documentation. I am looking for how to make a statement on skipping a step in my script if an excel row is blank. (patient doesn’t have a middle name, skip to next step.)

Katalon Studio allows the use of Java or Groovy programming, so if you are looking for documentation on if else, that would be the place to look.

e.g.
Groovy - If/Else Statement (tutorialspoint.com)

Saying that, if you are not familiar with programming then you may not understand some of the concepts. Such as, what would make up a “condition” (see the link above to show the if else statement). Perhaps, something like:

if (excelData.getValue(x,y) != "") {
    // only do this if patient has a middle name
    WebUI.setText(findTestObject('middleName'), excelData.getValue(x,y))
}

or

if (excelData.getValue(x,y).length() > 0) {
    // only do this if patient has a middle name
    WebUI.setText(findTestObject('middleName'), excelData.getValue(x,y))
}

This means if the content from your Excel cell is NOT blank then put the middle name in–it does what you are looking for but said differently.