How to use assert equals in Java with if statement?

How can I assert equals in Java with if statement?

Hello Alex,

We need to to define true/false in asserquals function itself as it return a boolean value.