case expression of value1 -> statement#1; value2 -> statement#2; valueN -> statement#N end.
-module(helloworld). -export([start/0]). start() -> A = 5, case A of -> io:fwrite("The value of A is 5"); -> io:fwrite("The value of A is 6") end.
The value of A is 5.