How do i perform something like this in bubble:
# Array of lists, each list contains a few names of different sizes
names = [
["Alice", "Bob", "Charlie"],
["David", "Eva"],
["Frank", "Grace", "Hannah", "Ian"]
]
# Loop through each list in the array
for name_list in names:
print("New list of names:")
# Loop through each name in the current list
for name in name_list:
sendEmail(name)
print() # Print a newline for better readability
currently, I am able to send email to the first loop, [“Alice”, “Bob”, “Charlie”], but am not sure how to go to the next array item.
The reason I need to have nested for loops is, I have one database called meetings, which stores the information of all meetings. I then have a database of attendees that stores the information of attendees, they are linked by the meetings uniqueId. which the attendees have a meetingID associated with the unique meetingID of the meetings database.
example:
- NameList:
- Entry 1:
ID
= 1,Title
= “List 1” - Entry 2:
ID
= 2,Title
= “List 2” - Name:
- Entry 1:
Email
= “alice@example.com”,NameList
= 1 - Entry 2:
Email
= “bob@example.com”,NameList
= 1 - Entry 3:
Email
= “charlie@example.com”,NameList
= 1 - Entry 4:
Email
= “david@example.com”,NameList
= 2 - Entry 5:
Email
= “eva@example.com”,NameList
= 2