I have a dictionary variable such as
Dict1 =
{"Employee1":"1234","B+",Senior"
"Employee2":"4321","AB+","Junior"}
How do I access each value under each key from the variable through the Bot?
I have a dictionary variable such as
Dict1 =
{"Employee1":"1234","B+",Senior"
"Employee2":"4321","AB+","Junior"}
How do I access each value under each key from the variable through the Bot?
Hi @Rishav Pandey ,
Checkout below tutorial, hope this helps
https://www.youtube.com/watch?v=YsRP1_LWEt8/p>
No it doesn't. I know how to access values and keys when there is one value per key. In my case I need to access multiple values per key.
Any help is greatly appreciated.
You will have to invoke each key as required.
If you are trying to assign 2 keys in a single string you can say something like:
Example: "$dicExample{Employee1}$ is a $dicExample{B+}$ Dev"
Output: "1234 is a Senior Dev"
In a dictionary there is only ever one key per value (Key Value Pair).
I can see now your keys are Employee1 and Employee2?
What would the output value of these keys look like?
Are you able to print them in a message box, and show the output?
I got it to work, here's what i did.
Yes you understood it correct.. Employee1 and Employee2 are the Keys here and everything else is the value under it's respective key.
My expectation is that the command "$Dict1{Employee1}$" at least returns the list stored under the key. Such as "$Dict1{Employee1} in a message box should give the output as 1234,B+, Senior."
But in reality here's what's happening.
There seems to be no way I can extract the list stored under a particular key. It is possible in various other programming languages. But in AA it seems to be glitching out.
Whoaa.. This is actually working.. Thank you so much man..
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.