Yeah, switches are totally replaceable by if statements, and they are more limited since they must evaluate an expression first and the different branches are determined by the outcome of the result expression. However, in cases where you're doing things like "x==1", "elsif x==2", etc. Switches are slightly more optimized and easier to read.