[Solved] Get the length of a BBCode object text?

I’m making a word puzzle, and it requires comparing the number of characters contained in two separate BBCode Text objects. I can’t seem to figure out how to do that, or indeed how to access the text of a BBCode object via an expression at all (rather than modifying it manually via an action). BBCode.Text() isn’t a valid expression, for example.
Any tips on how to do this would be much appreciated!

The expression you’re looking for is YourBBCode.GetBBText(). Using StrLength() around that will give you the number of characters. From there, you can just use the “compare 2 numbers” condition or whatever else you have in mind. Hope that helps.


1 Like

Thank you! I later discovered the existence of GetBBText() and StrLength() after some poking around, but this is exactly the answer I was looking for when posting this.