a clean way to allow for variable display
< !--- THIS IS THE FIRST CONDITIONAL TRIGGER THAT TOGGLES THE POSTITION OF THE IMAGE & TEXT PAIRING --> < ? php if (get_field('first_toggle') == 'image_left') {? > < div class="container"> < div class="casestudy_image_left">< !--IMAGE AS OBJECT | NOT CONDITIONAL --> < ? php $firstSplitImage = get_field('first_split_image'); ? > < img class="full-width-image" src="< ? php echo $firstSplitImage['url']; ?>” alt=”< ? php echo $firstSplitImage['alt']; ? >” /> < /div>< !-- ends casestudy image left --> < div class="casestudy_contents_right"> < ? php the_field('first_split_text'); ?>< /div>< !-- ends casestudy contents right --> < !-- ENDS CONTAINER--> < ? php } else if (get_field('first_toggle') == 'image_right') { ? > < div class="container"> < div class="casestudy_image_right">< !--IMAGE AS OBJECT | CONDITIONAL --> < ? php $firstSplitImage = get_field('first_split_image'); ? > < img class="full-width-image" src="< ? php echo $firstSplitImage['url']; ? >” alt=”< ? php echo $firstSplitImage['alt']; ? >” /> < /div>< !-- ends casestudy image right --> < div class="casestudy_contents_left">< ? php the_field('first_split_text'); ?>< /div>< !-- ends casestudy contents left --> < /div>< !-- ENDS CONTAINER--> < ? php } ? > < !--- ENDS THE FIRST CONDTIONAL TRIGGER -->
either / or condition