Make text trait of objects never be usable as a number

A feature I’d like to see in Hopscotch is:

The text property which you set using set text should only ever be text, never numbers.

I’d use it for this type of project:

PRojects where I want a variable to be guaranteed to be text that will never behave as a number

Here are some examples of Hopscotch code that could be improved if we had this:

Code where you want a text string that behaves as a text string even if it is only made of digits


Yes please

Had this problem earlier today


Wdym? I’m DONT get it

1 Like

variable (self) text shouldn’t allow numbers in it

1 Like

What if you want to set text to a number? Like set text to (score)

1 Like

It’ll just convert to a number. JavaScript (what HS is written in) does that anyway.

Are you replying to me?

Yes, I am.

Oh okay. That makes sense, thanks.