Status check functions in github actions

When to use status check functions and when to use if statements instead? Why the if statement does not work in this lesson?

Can you be a bit more specific with this question please.

What do you mean by “if statement does not work”? Can you tell me where in the video by giving the time of where the lecturer is talking about it.

Thanks