The workaround for this block would never work. The real script would be: set [report] to [false] set [count] to [1] ||repeat <length of [list]> ||||if <item (count) of [list] = (string)> ||||set [report] to [true] ||||change [count] by (1) ||||______________________ ||||else|| ||||change [count] by (1) ||||______________________ ||_________________________
(Press 'Edit' to understand what the blocks are)
Bit of a bad design for a block in text, but I can't work out how to add a picture (having trouble with the name of the picture and the .file type).
Hope it's fixed!
SpiritMaster (talk | contribs) 15:23, April 15, 2011 (UTC)
- Oh, oops! Sorry about that.
Scimonster (talk | contribs) 15:25, 15 April 2011 (UTC)
Workaround for this block
There's 2 very similar workarounds using the item number of () in () block:
<(item # of [string to find] in [list v]) = [0]> //returns true if it doesn't contain it <(item # of [string to find] in [list v]) > [0]> //returns true if it does
So you xan put the first one in a not block or use the 2nd
It could also be mentioned that you can put the item number of () in () block into boolean inputs, and it will function like the () contains () list block.
Medians (talk | contribs) 21:57, 27 June 2023 (UTC)