How do you include add multiple list items at once
@futureautomation2504
Жыл бұрын
Yes we can do that with list as well as dictionaries. You create two three list and than in a new list whil you add a new data use select variable and select the list you want to add
@futureautomation2504
Жыл бұрын
Same for dictionary
@futureautomation2504
Жыл бұрын
But I think with dictionary it will be easier to access the data
@ilvxor
11 ай бұрын
Anyone can help me? I’m using a dic in shortcuts but it doesn’t work as i expected to… I put my Dict_1 into a repeat loop, but each time i call “Set (key) (value) in (dict)”… it creates a new Dict, so when i need the new values, the Dict_1 is full of repeated values DIC_1 { “1”:”val1”, “2”:”val2”} Repeat each value in DIC_1 Set repeat-index to “new val” in DIC_1 End repeat Show DIC_1 // shows the same dict without any change that happened in the loop. “Set” creates a new dict each.
@futureautomation2504
11 ай бұрын
Share your email id or LinkedIn I will share you the screenshot of the shortcut actions
@ilvxor
11 ай бұрын
@@futureautomation2504 thanks, I already solved it. The solution was to call “set variable ‘MyVarDic’ “ with DIC_1 as argument, before the repeat loop, and another “Set variable ‘MyVarDic’ “ now with MyVarDic as argument inside the repeat loop… and now when I call MyVarDic back after the repeat loop, it contains all the new values i need :)
@futureautomation2504
10 ай бұрын
That’s great thanks for the reply👍🏻
@valorsuperman5568
6 ай бұрын
How to do this 1. Suppose I have 3 focus modes (eg A,B,C) & I want to assign value to A&B as 0 and C as 1 2. Get focus 3. if value is 1 do- x work Otherwise do - y work Please let me know how to do it using dictionary .
@futureautomation2504
6 ай бұрын
I am not yet clear with what you want to achieve. Can you please explain a bit more thank you
Пікірлер: 14