Hello everyone - we are extremely pleased to release two major new pieces of functionality for Dropsource today: the ability to process text strings and… …carry out math calculations…!
You’ll see two new actions in the editor: Calculate Math Expression and Build a String. Note that they both use slightly different interaction from the existing actions so may take a little getting used to.
The Calculate Math Expression action allows you to carry out a calculation, building values from your app into it, and retrieving the result to use in other actions. To use a value from your app in the calculation, create a variable, giving it a name (just to use locally within the action), and selecting a value from the input sources in your app (such as page/device variables, user input via elements, API response fields etc). In the Expression box, refer to your variables by name and include them along with any operators you need, e.g. price*quantity
. Use the Action Data in other actions you add to the same event in your app to access the result of your calculation.
The Build a String action allows you to interpolate string values - to create strings using values from your app together with string literals. As with the math action, use the variables section to refer to values from the app and reference them in the Template - however when building strings, your variable references should be enclosed in double curly braces, e.g. Welcome {{first_name}} {{last_name}}
. As with the math action, you can access the returned string in other actions added to the same event.
Our help center includes some general info in the main documentation section:
As well as the FAQs:
- How do I add numbers?
- Why is my template or expression highlighted in red?
- How do I add two pieces of text together?
And we have a few new tutorials:
These two actions represent a significant increase in the amount of complexity you can build into your apps in Dropsource. That’s hugely exciting to us because it opens up a huge range of new possibilities for our users to successfully complete their projects without additional customization after download. Having said that, we do anticipate an additional learning challenge in using these actions, particularly for people who perhaps don’t come from a coding background. For that reason we really want to know what challenges you hit, anything you find confusing, or any use cases you’re struggling to implement - so that we can improve on the UX and learning resources on an ongoing basis.
My initial goal with the first tutorials is to provide a starting point for learning to use these new actions, by including them in short walkthroughs that implement example use cases - hopefully equipping you with the basics of putting them to use in a way that you’ll be able to apply in your own projects.
With this new functionality there are so many possibilities, in all honesty it’s difficult to narrow down the topics and decide on useful examples - so I’m really hoping to take my lead from you, our community members, to let us know what you plan on making with these new actions, and to share what you discover when you try them out yourself. The above list of tutorials is really just the beginning - let’s build on it together! Whether you take the time to share feedback, a quick tip, a walkthrough or demo, we’ll be delighted to highlight the best community contributions through the Dropsource web presence
(something we plan on doing a lot more of soon - stay tuned for more on that in the coming weeks).
And finally a note that we are not quite done with this area of functionality - we’ll be adding more string processing actions soon. More general info about this release in our release notes.
I cannot wait to see what you build with these actions!