Get Variables from a list in alist

Hey there!

I need some help... I’ve set up a list of lists, where each sublist contains data about a riddle — like title, question, answer, etc.

Now I’m trying to loop through this list and access specific items (like the title) inside each sublist.

I know I’m probably missing one simple step to correctly access the sublist elements within the loop — but I just can’t figure out what.

Any tips would be greatly appreciated — thank you so much in advance!

The get component part doesn't look right

image

What do you want to do with the value when you have extracted it from the list ?

Do you only want to access the title for each sublist (index 2) ? (unless you want Ratseln) as your title ?)

Oh, the component refers to a Marker that was clicked on the map. What I want to do is check whether the clicked Marker's Name matches the first item in one of the sublists.

For example, my first Marker in the Map component is named "Rätsel1" in the designer/editor, and I want to compare that to the first value in each sublist of my global Rätsel list.

You would need the "title" in the Description for the marker, you cannot return the "name" as set in the designer

image

image

(sorry, too lazy to go off and find the umlaut characters...)

Again sorry, just remembered "Title"

image

image

No problem at all avoiding umlaut characters :smile:

The issue is that I’m already using the Description field for something else:
When a user clicks on a marker that’s too far away, the InfoBox shows how far away it is — and I’m displaying that using the marker’s description.

Also, the Title is shown in the InfoBox too, but having something like "Ratsel1" as the visible title isn’t very user-friendly… you know what I mean?

It’s a bit frustrating that the real component name isn’t accessible — that would make things a lot easier for me.

I thought about it and i want to use the title. So the problem still is, how to get the first entry of the sublist?

Maybe something like this:

Make a list of your markers, so that you can get the component
Use the any Component blocks (scroll to bottom of palette on left to find these
Ensure your markers list is in alignment with your Ratsel list, or add the marker component to each sublist item...

(you do not show how you get the marker component in your original blocks)

Just to clarify what I’ve done:

I'm adding the markers to a list during Screen Initialize.

Later on, I want to compare the Title of the clicked marker with the first item (the title) in each sublist of my data list (global Rätsel, shown in my first entry).

So basically, I don’t need to access the marker components deeper — I just need to check the values inside the sublists.
Hope that makes it clearer what I’m trying to do!

Like so ?

Yeah, Thats it. Thank you so much. I thought i have to go deeper but "select list item list" does the trick already.