Is it possible to create an {if} statement based on the character length of a channel field? Something along the lines of this:
Lets say I have the channel field - {title}
and I want to add a class to the parent <div>
if the character length of the title is larger than 10. Something along these lines...
{if "{title_length}" >= "10"}
<div class="wide">{title}</div>
{if:else}
<div>{title}</div>
{/if}
How would I go about doing this with EE?
I hope this is clear. Thanks in advance.
Ryan