Suggestion: Get From String

This is a block I would really like. It would make keywords with chat bots and other things so much easier.

What is this block?

This is a block that would go with the most recent big update, which was the ability to make a keyboard appear and then let the player type on it. The basic function of this block is…
let’s say we have the string “ABCD”. This block would let you ask if the string has “AB” in it. And if it does, do something.

Yeah that’s basically all it is to reply in the replies or something

10 Likes

We have the matches block though

2 Likes

Nice

1 Like

What would you use it for?

2 Likes

that’s like strict, if you type in aBc and it only matches abc then it won’t work


this is an interesting idea, it could probably be done with RegExp but that’s long and a block would be simpler

2 Likes

The point is it’s just another thing to make things easier, and it’s not necessary

1 Like

It’s still useful, which is the important part

2 Likes

This is basically what the matches block does, it checks if the value of the first parameter matches the value of the second, so ABCD matches AB would be true.

Yeah, a block to make a string all lowercase/uppercase would be useful.

3 Likes

4 sure

1 Like

Matches is a test for true false, not the match command, right?


Also with the regular expressions, I would like to see it only use that if there are slashes at the beginning and end due to the behavior of them.

/use_as_regexp()/
use_as_string()

Also for the case sensitive thing, there should just be a to lowercase and to uppercase blocks.

3 Likes

What do u mean?

1 Like