String interpolation w/ dynamic collection field item

Curious if there’s any Webflow solve for string interpolation with dynamic collection field item? Trying to have page display the {{field item}}, unless it’s null/empty, in which case display ‘THIS TEXT’ instead.

My non-webflow approach would prob be string interpolation like so:

<script>document.write(${variable || “BLANK”});</script>

Example: look at the first H3 element:

<h3>About visiting the {{Place Name}}</h3>

GOAL: If that {{Place Name}} field item is null for any collection item, display ‘Probate Court’ instead.

Preview: https://preview.webflow.com/preview/atticusppd?utm_medium=preview_link&utm_source=designer&utm_content=atticusppd&preview=3df6681fdc53eed2476ec51272b3e099&pageId=5f7bc5d4683ff10ecc522c06&itemId=5fea5290db40897a14912124&workflow=preview

Just assign the field to a variable first and then use your ‘non-webflow approach’.

Hmm, ok thanks. Tried that first and it didn’t want to accept… will try again!