Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » if (item () in list) contains ()
- donutty1
-
36 posts
if (item () in list) contains ()
I've tried loads of things but i can't try to find a way which i can have a block like this:
it basically checks if an item (string) in a list contains a substring
which the output would be in a variable which stores either true or false, I'd be extremely grateful to anyone who helps!
it basically checks if an item (string) in a list contains a substring
which the output would be in a variable which stores either true or false, I'd be extremely grateful to anyone who helps!
- RokCoder
-
1000+ posts
if (item () in list) contains ()
Something like (or based on) this should do the trick:
- donutty1
-
36 posts
if (item () in list) contains ()
Something like (or based on) this should do the trick:
thanks so much! it works perfectly! really appreciate the help
- smileycreations15
-
1000+ posts
if (item () in list) contains ()
scratch 3.0 it has a boolean for this purpose in the operators section. I've tried loads of things but i can't try to find a way which i can have a block like this:
it basically checks if an item (string) in a list contains a substring
which the output would be in a variable which stores either true or false, I'd be extremely grateful to anyone who helps!
- Discussion Forums
- » Help with Scripts
-
» if (item () in list) contains ()