How to use return statement with if condition in elixir?

lets say i have a sample like

a = 20; b = 10;
if (a > b) do
{:ok, "a"}
end

if (a < b) do
{:ok, b}
end

if (a == b) do
{:ok, "equal"}
end

when i run this code first condition satisfied ,instead of returning {:ok, "a"} tuple it starts executing next block of code, how can i stop the execution once first condition is met, and return result