Hi,
I have a Map Series Layout going with a dynamic text element based on an attribute. It shows like this:

And here is the code for it:
City of Pickering (<dyn type="page" property="attribute" field="SETTLEMENT"/>)
Is it possible to customize this further using an IF statement? I want different formatting to happen depending on what the value of SETTLEMENT might be. Is there an Expression Builder for a text element?? I can't seem to find anywhere to customize. I am using ArcGIS Pro 2.9.5
Thanks