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
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 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 :)
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 .
thank you 👍👍❤
Welcome 🙏🏻
Great 👍
Thanks 🙏🏻
How do you include add multiple list items at once
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
Same for dictionary
But I think with dictionary it will be easier to access the data
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.
Share your email id or LinkedIn I will share you the screenshot of the shortcut actions
@@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 :)
That’s great thanks for the reply👍🏻
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 .
I am not yet clear with what you want to achieve. Can you please explain a bit more thank you