How to handle blank input

I have a input file which has 4 columns

Account, package, service, otc
12345,ML24Large, ,7000
45678,ML24Medium,1115,7000

What my script is supposed to do is

  1. Type into (Account.tostring) then press enter
  2. New page opens and Type into (package.tostring) then press enter
  3. Another page opens and Type into (Service.tostring) then press enter
  4. Another page opens and Type into (OTP.tostring) press enter
  5. Exit

I am not sure how to handle if the service column has no entry for 1 row as if the column is empty then it’s supposed to click on otp

Can anyone help please

@dipon1112000 ,

I assume you will be reading the data into Datatable.

Iterate the DataTable with For Each Row in Data Table
Add logic for step 1-2

Add a boolean variable to store if Service is blank or empty
Assign Activity

boolIsServiceEmpty - String.IsNullOrEmpty(Service.tostring)

Add logic for Step 4

Now for step 5 add If activity and put Not boolIsServiceEmpty in condition

Add Exit step logic into If Part.

That’s it.

Thanks,
Ashok :slight_smile:

Thank you it worked,:pray:

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.