Hello, I has a question about how to convert the bellow C program into Erlang. void judge() { int a; int b; a = getA(); if (a == CONF1) { doSomeThing(a); return; } b = getB(); if (b == CONF2) { doOtherThing(b); return; } doThings(); return; } I think about "case" and "if" construct, but none of it seems work fine, thanks for help.