-
-
Save hellofromtonya/fa2ddf9df3efde79324168a0896d8ad3 to your computer and use it in GitHub Desktop.
Code Challenge if/elseif/else
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$post_id = 10; | |
$image_size = 'thumbnail'; | |
if ( $image_size == 'full' || $post_id < 5 ) { | |
// run the if code block | |
} elseif ( $image_size == 'thumbnail' && $post_id == 10 ) { | |
// run the elseif code block | |
} else { | |
// do the else code block. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment