Custom code for Conditional Visibility if CMS field was set

How can one make elements in custom code visible or not based on a cms field having been set?

Any clean way to do this?

Thanks!

You would need to set the value of a variable equal to the contents of an element that was bound to the collection item, then conditionally check the variable value and do something if set or not. Totally doable with custom code.