support for else condition in if tags

This seems to work without being too much of a hack hopefully :)