Condition review task

I’m trying to rely on the API to build the important problem is that I can’t quite understand what they do!
Thank you!