In response to this question from Jason, here’s a quick demo of how to concatenate two lists into a single ListViewer.
Here’s the remix link in case you want to experiment with this yourself:
https://x.thunkable.com/copy/eff5d510394e9c7e3a8db660070f2fc3
1. Prepare your two lists
Your lists can contain anything you like, and the data can come from users/firebase/localDB/airtable - it’s completely up to you really.
2. Create your variables
In this example we’ll use
- A variable for the concatenated strings, called
tasks
- A variable to keep track of where we are in our list, called
index
- A variable to separate the first string from the second string, called
delimiter
3. Create your concatenated list
Here’s a function the loops through the input lists and joins the second to the first, with the delimiter of your choice in the middle.
Note that we also use the to UPPERCASE
block to further emphasise the difference between the task name and the task description
4. Display the list in a ListViewer
voilà!