Matching variable in 2 datatables

Hi thank you, Can i ask what does the if else statement part mean?