snapapps / edgy

a visual programming language inspired by Scratch
http://snapapps.github.io/
GNU Affero General Public License v3.0
51 stars 21 forks source link

Nested Lists issue searching for an item #439

Closed GeorgiaG007 closed 7 years ago

GeorgiaG007 commented 7 years ago

I'm attempting to retrieve an item in a nested list, getting error Type.error list.length is not a function - hope you can see my pasted screenshot image below... image

Dalordish commented 7 years ago

You are accessing the first item of the first item of dogs, which is a nested list of [[a,b],[b,c][...]]

The block of statements resolves from inner to outer, therefore, the command : length of (item 1 of (item 1 of dogs)) will resolve as follows.

The first item of this list of lists is the list [a,b] The first item of that list is "a".
We then attempt to get the length of "a", which returns an type error, although I'm not sure why it returns it as "list.length" is not a function, since the type is clearly not a list but a string.

GeorgiaG007 commented 7 years ago

thanks Richard, I've tried a new version with testing that the data type is a "text" before recursive call..see attached image and now I get a different error "Inside: Error reporter didn't report" image

Not sure how to do this?

vinita6 commented 7 years ago

edgy-search

Need to have a report at the end.

GeorgiaG007 commented 7 years ago

thank you vinita6 for your help