<?php
/* 
= Use a switch statement instead of endless if:elseif conditionals
* Version: 1.1
* URL: elbone.com.au
* Usage: More conditionals http://codex.wordpress.org/Conditional_Tags
*/

switch(true) {
	case(is_home()) :
		// the code for home page
	break;
	case(is_archive()) :
		while(have_posts()) { 
			the_post();
            // the code for the archive
		}
	break;
	case(is_single()) :
		while(have_posts()) { 
			the_post();
            // the code for single post
		}
	break;
}
?>