Tom  Kuhl
Tom Kuhl16mo ago

Iterating through multiple blocks - Part 2

The bot I’m building is calling an API then iterating through a lot of weather data (1.6MB per call). Specifically, it’s checking if six specific weather elements are met over 15 days total. Because 90 conditions blocks is quite large for a single canvas. I decided to turn the six condition blocks for each element into a component for each day. I told each component block if a specific condition is met to go to one of a number of corresponding block backs on the canvas, but the component only returns to the first block My last problem, iterating through multiple condition blocks on the canvas was solved by adding an “and” path to the next block. I tried to do that again and it goes through some but not all of the blocks To give an example of how the bot works: It asks for a location and then pulls a 15 day forecast. It then asks for days within that forecast. When given days it checks things like temperature and rain. If the temperature is above 75F it’s supposed to reply it’s going to be hot And if it going to rain it’s supposed to reply it’s going to rain Does anyone know why the one component I’ve built so far won’t go to more than one block? If no one has an answer, my next step is to add all 90 conditions to the main canvas and physically connect to the text reply blocks. @W. Williams (SFT), you’ve been very helpful. Do you have any thoughts?
No description
No description
No description
1 Reply
W. Williams (SFT)
You might consider using Javascript. That would be done in 1 secript. You could also write a function.

Did you find this page helpful?