It is very basic logical action, You have to get around it, otherwise, you will be stuck.
Make tests and read articles about if logic to understand.
I totally agree it is confusing at first, but once you will start to understand it will get easier with time.
To explain what is in your picture...