Apple Shortcuts 101 || Lists and Dictionaries Part 4

Sdílet
Vložit
  • čas přidán 27. 08. 2024

Komentáře • 14

  • @user-qs8wl6th7k
    @user-qs8wl6th7k Před 3 měsíci +1

    thank you 👍👍❤

  • @AshishKumar95
    @AshishKumar95 Před rokem +1

    Great 👍

  • @axelkent
    @axelkent Před 11 měsíci +1

    How do you include add multiple list items at once

    • @futureautomation2504
      @futureautomation2504  Před 11 měsíci

      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
      @futureautomation2504  Před 11 měsíci

      Same for dictionary

    • @futureautomation2504
      @futureautomation2504  Před 11 měsíci

      But I think with dictionary it will be easier to access the data

  • @ilvxor
    @ilvxor Před 9 měsíci

    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
      @futureautomation2504  Před 9 měsíci +1

      Share your email id or LinkedIn I will share you the screenshot of the shortcut actions

    • @ilvxor
      @ilvxor Před 9 měsíci +1

      @@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
      @futureautomation2504  Před 9 měsíci

      That’s great thanks for the reply👍🏻

  • @valorsuperman5568
    @valorsuperman5568 Před 4 měsíci

    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
      @futureautomation2504  Před 4 měsíci

      I am not yet clear with what you want to achieve. Can you please explain a bit more thank you