Simple 'Set Variable' action

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
automagician
Posts: 8
Joined: 28 Feb 2016 19:11

Simple 'Set Variable' action

Post by automagician » 23 Mar 2016 14:55

Didn't see the request posted before (I actually searched), if I missed it, please let me know, and I'll 'me too' the existing thread.

As part of my mission to introduce more people to AutoMagic, I'm hoping my suggestions will be helpful.

The 'Script' action is too intimidating for new users, and can be time consuming/frustrating for even advanced users.

A simple 'Set Variable' action which allows the user to set/increase/decrease a value, or refer to another {variable} via a dropdown, would be very useful.

It should cover the needs for most Flows, and would make things easier, even for experts, IMO. 'Script' would still be useful for the more complex situations.

User avatar
mbirth
Posts: 80
Joined: 17 Mar 2016 00:02
Location: Berlin, Germany
Contact:

Re: Simple 'Set Variable' action

Post by mbirth » 23 Mar 2016 15:48

Please don't make this another "Automate". I'm currently evaluating both - Automate and Automagic - as a replacement for my little world of Tasker scripts. What I absolutely hate about Automate is exactly that: You need hundreds of blocks just to shuffle around a few values. A single Script block makes life so much easier and the flow extremely easier to "read".
BlackBerry KEY2, Android 8.1.0

automagician
Posts: 8
Joined: 28 Feb 2016 19:11

Re: Simple 'Set Variable' action

Post by automagician » 23 Mar 2016 16:44

I specifically mentioned that the Script action is still useful, but having to write scripts for a simple action doesn't make sense on such a tiny screen, especially when you like to tinker.

You can keep using Script, but there's no harm in allowing an easier to use method on top of that.

User avatar
mbirth
Posts: 80
Joined: 17 Mar 2016 00:02
Location: Berlin, Germany
Contact:

Re: Simple 'Set Variable' action

Post by mbirth » 23 Mar 2016 17:05

Well, you have to type the name of the new variable anyways. What's so difficult to add "=123" after that? And drop-downs wouldn't allow the flexibility you have now in terms of the various functions and display formats ({myvar; dateformat; HH:mm}).

However, I'd love some sort of auto-completion for functions and variable names in the script editor, like Automate has.
BlackBerry KEY2, Android 8.1.0

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Simple 'Set Variable' action

Post by Martin » 24 Mar 2016 21:14

You can use the buttons Snippet, Variable and Function below the script editor to insert script parts more comfortable. The variable-list contains all variables that could be available when the script is reached (best effort).

Locked