if else and variable

Hi, I need help with IF ELSE fonction.
can you help me write the code ?

I need somthing like this :

if " findTestData(‘data1’).getValue(2, rowNum)=F "

execut => WebUI.click(findTestObject(‘Object Repository/Page_Saisie de dossier - CyberLab 10.1/div_F’)

ELSE => WebUI.click(findTestObject(‘Object Repository/Page_Saisie de dossier - CyberLab 10.1/div_H’)

Thank you for your help.

How about something like below:

if (findTestData('data1').getValue(2, rowNum) == "F") {

    WebUI.click(findTestObject('Object Repository/Page_Saisie de dossier - CyberLab 10.1/div_F')

} else { 
    WebUI.click(findTestObject('Object Repository/Page_Saisie de dossier - CyberLab 10.1/div_H')
}

Hi @rem.jeannin, You should also start here to get a full understanding of how control statements work: https://docs.katalon.com/katalon-studio/docs/statements.html