Converting Code from other Platforms

I am using this from another platform to make a Roman Numeral Face .
Some may Recognise the Syntax.


How ever what I thought might be the equivalent for WFS dose not work in text box of a text layer .


It seems like the Conditional will only work with numbers.

Any Help will be Appreciated .

Oh well this might be useful to someone .

I took a little break and remembered some of my Old Basic .


Sorted now .