Open Agonar35 opened 1 year ago
Hi, thanks again for the advice!
First, we will explain this point: API calls are mainly for outside calls, and variable placeholders are more like a simple "syntax sugar."
We will consider adding the necessary variable placeholders for pure in-app API calls (for example, by using items). But may not add more complex elements and custom parsing syntax.
Going back to this issue, it's beneficial for in-app calls. So we'll look at how to add some simple addition and multiplication rules, but not the more complex parenthesis precedence, etc.
Alternatively, you can use automated tools such as Tasker/Macrodroid to implement an input dialog and calculation logic and then use the final result (URL) to call LifeUp.
Of course, there will be some challenges in this way. But the advantage is that you can have a very high degree of freedom.
Is your feature request related to a problem? Please describe. I found very useful the option of using Variable Placeholder but I also found, that apparently, it's not possible to substract or multiply the introduced value.
Describe the solution you'd like Let's suppose I've got an item which increases it's price everytime you use it by 2, but it's a common item which you use many times per day and it has a complex system of URL's working together, so you need to use it individually everytime you purchase it, but it would be useful having the option of using it just once by introducing the number of times you'll use it and multiplying it by the increasing basic price. Here's the example:
lifeup//api/item?id=1&set_price=[$number|introduce the number of times you want to use the item]x2
That would adjust the price incresing it by
2 * Number of times used.
This is a simplified version of the real usage I would do, just to make easier to understand the request.
Describe alternatives you've considered I don't imagine alternatives, I don't know if the request is even possible, I didn't even consider divisions because it could generate a decimal number, I just considered substractions and multiplications