thunkable / thunkable-issues

24 stars 9 forks source link

Lists documentation is wrong/misleading #1219

Open agvardha57 opened 1 year ago

agvardha57 commented 1 year ago

image If you use the does list with the gear it does not work. I was told one with the gear is meant for creating a list not to search it. This fails: image This works: image Please fix the documentation

tatiang commented 1 year ago

The documentation is correct but you're confusing two different things.

This...

image

...is two text strings which become a list because the [gear] list block is added to them. In this case, you need the [gear] list block. In set notation this would be {"a","b"}.

But this...

image

...is a list (list viewer's text items is automatically a list) within a list because the [gear] list block is added to it. So in that case, you don't need the [gear] list block. Assuming the list viewer contains "a" and "b" as items, in set notation this would be {{"a","b"}}.

In summary, if something is already a list, you can use list blocks to search/modify the list. If something is not already a list, you can't until you add a [gear] list block.

tatiang commented 1 year ago

Here are some examples of blocks that are already lists:

image image image image
agvardha57 commented 1 year ago

Yes got the idea Tatiang. I had read up on the Mutator blocks - https://thunkable.com/explore/ai2/support/concepts/mutators.html (The blue gear box) however every time I click on image anyone below the link does not resolved just hangs. I wish they had explained it the way you explained in the original List Documentation. I will modify m bug report suitably. Thanks a lot

tatiang commented 1 year ago

You're welcome. By the way, that's quite outdated documentation that you're referencing. Current documentation is at https://docs.thunkable.com.