View Source case, cond, and if In this chapter, we will learn about the case, cond, and if control flow structures. case case allows us to compare a value against many patterns until we find a matching one: iex> case {1, 2, 3} do ...> {4, 5, 6} -> ...> "This clause won't match" ...> {1, x, 3} -> ...> "This clause will match and bind x to 2 in this clause" ...> _ -> ...> "This clause would match an