Display only n number of characters of text from Wix database

I tried this code but the If statement makes the count of characters previous to receiving the content of the database, so, it does nothing.

¿How can I make the If comparition after the “text49” has received the data?