Discuss Scratch
- Discussion Forums
- » Suggestions
- » If a string contains something.
- Charles12310
-
Scratcher
1000+ posts
If a string contains something.
<[] contains []? :: operators > // Support for this one.
(letters () to () of [] :: operators )
(letter position of [] in [] :: operators ) // Reports nothing if not found, reports "number a to number b" if found.
<[] is a [word v]? :: operators >
<[] is a [number v]? :: operators >
([uppercase v] [] :: operators )
([lowercase v] [] :: operators )
<[] is [uppercase v]? :: operators >
<[] is [lowercase v]? :: operators >
<[] contains [uppercase v] letters? :: operators >
<[] contains [lowercase v] letters? :: operators >
([] backwards :: operators )
- Paddle2See
-
Scratch Team
1000+ posts
If a string contains something.
This was implemented in Scratch 3.0(string () contains [] :: operators)The string will come from a variable, so you could have "if string (variable1) contains [hello] then do this", for instance.

- Discussion Forums
- » Suggestions
-
» If a string contains something.

