How can I make the list in the dictionary return a random value of 1?

Problem :look up pairs:the list [“liste2”,[“E”,“F”,“G”,“H”]] is not well-formed list of pairs

Check this aia , this might help you
dictionary_test_1.aia (2.5 KB)

if yours problem is solved with this , then hit at solution button

Thank you. My problem is solved. I also made some improvements.

1 Like

I tried to do it using Firebase, but I couldn’t do it Randomly, it gives an error.
Please can you help?

firebase

As you can see from the error message, this is not a list, it is a csv row
To convert it into a list, add here a list from csv row block

Taifun

I tried to do it and it didn’t work. Can you block it?

It would really help if you provided a screenshot your relevant blocks, so we can see what you are trying to do, and where the problem may be.

To get an image of your blocks, right click in the Blocks Editor and select “Download Blocks as Image”. You might want to use an image editor to crop etc. if required. Then post it here in the community.

Taifun

Please show us a screenshot of how you are storing tcat data in Firebase

Taifun

database
json view

As a result I want to show a randomly selected one A or B or C or D.

first call the full result from firebase and store in a global variable , now call any random sub result from the data stored in global variable ,

use block split at and select list item list index blocks


Thanks you.

1 Like

json2

I was getting the information from the index. Can I write json data (for example: Theree) instead and get the information from it?