Site icon Hip-Hop Website Design and Development

ACF: Echo web page title when checkbox is checked

How can I present the title when a checkbox is checked. I exploit Superior customized fields

my area identify is nav

That is what i at present have.

<?php if(get_field('nav')) { ?> 
   <li> <a href="<?php the_permalink()?>" class="energetic"><?php the_title();?></a>

</li> 

<?php } ?>