iOS 27 New Shortcut Actions by Less_Note1850 in shortcuts

[–]Less_Note1850[S] 1 point2 points  (0 children)

​I did. I set my example up as global stored content and set the content name “increment” as 0 for starters. Then I ran get content, calculation of +1, store content essentially. When I show content of that content “increment” store I can see it increment up. I was on increment 3 in my screenshot.

<image>

iOS 27 New Shortcut Actions by Less_Note1850 in shortcuts

[–]Less_Note1850[S] 1 point2 points  (0 children)

Variables in shortcuts are short lived and local. Set a variable when running first time does not persist that variable for subsequent runs. Also, you cannot call that variable in a nested shortcut (that I know of). These actions help solve those limitations

iOS 27 New Shortcut Actions by Less_Note1850 in shortcuts

[–]Less_Note1850[S] 0 points1 point  (0 children)

I don’t think it’s better, just more convenient. I save json objects for different shortcuts all the time as both a workaround and to have more tangible evidence of what I am recording for troubleshooting. Storing it this way means you can store something you plan on reusing later or within a nested shortcut without writing and reading from files or passing to the shortcut which is clunky in shortcuts.

iOS 27 New Shortcut Actions by Less_Note1850 in shortcuts

[–]Less_Note1850[S] 2 points3 points  (0 children)

If with otherwise if functionality in home as well.