Can I show/hide content from a database on a dynamic item page based off of whether a boolean field is checked?

Ops, I just saw this today.
$w( " #Y OUR DYNAMIC DATABASE ID " ).onReady(() => {
let items = $w( " # Y OUR DYNAMIC DATABASE ID " ).getCurrentItem();
if (items.broncoStatus === true) { $w( " #soldtext " ).show(); $w( " #soldbox " ).show(); } else {$w( " #soldtext " ).hide(); $w( " #soldtext " ).hide();});