Newbie question regarding best practices (including a string of nested ifs): How do you code the following: case X of 4 -> something; <2 or >6 -> something else; _ -> something else again end, and case X of atom1 or atom2 or atom3 -> something; atom4 -> something else; _ -> -> something else again end, Thanks! Don