How do I say "If there's no category associated to this post"?

I want to enforce a condition such that a certain string of text appears only if the post doesn’t have any category assigned to it.

I tried a few variants of the following, but I don’t think I’m close:
<If taxonomy not_exists>String of Text</If>

Any help would be greatly appreciated. Thank you

I would probably use an If loop condition for this:

<If loop type=taxonomy_term taxonomy=category post=current>
  Categories exist
<Else />
  No categories exist
1 Like

It worked, thank you Julia.

1 Like