Hi, @Nathan_Hannon! My first suggestion is that if your interface needs a single checkbox, then you should probably be using a Toggle Field instead.
label: Click Through
- turned off
- turned on
You can then use the ->toBool() method to automatically convert its value for testing in your ‘if’ clause, like this:
<?php if ($item->clickthru()->toBool()): ?>
<a href="<?= $item->url() ?>">
The Checkboxes Field is really meant for when you have a list of items that can be on/off, included/excluded. Therefore, the field returns a list of selected values - not a single value - in a comma-separated list. You then need to split() the list and work with each value individually, as described in the docs.