Can someone please explain this 'my_if' code in the Metaprogramming Elixir book?

I tried that and had an error cannot invoke macro my_if/2 before its definition