`elsif` will do that for you. You may want to move it below the `die` though.