Figured it out 😉
<?php if( have_rows('optionpage', 'option') ): ?>
<?php while( have_rows('optionpage', 'option') ): the_row(); ?>
<?php
$layout_type = get_sub_field('page_layout');
if ($layout_type == 'vertical'){
echo 'vertical';}
else {
echo 'horizontal';}
?>
<?php endwhile; ?>
<?php endif; ?>