Revert "forgot elseif"

This reverts commit 24e12cddcf048e78446055e2f1838f495c14c9a9.