if function for a new field formula

if function for a new field formula

Hi there.

I'm trying to implement a function that simplified would be this one:
IF( Parent.Name != "",Parent.Name, Name)

I'm not very familiarized with programming and with different programming methods. Basically would like to compare Parent.Name with an empty string and then add Parent.Name or Name depending on the answer.

Can't be very difficult, but after trying so variants couldn't find one that works :/

Ty!