Subtracting one value from another and returning result
Options
David Lundvall
Member ✭
Hi,
I created this in an addon…
[{vote_type: upvote,suggestion_vote_vote_type: 1},{vote_type: downvote,suggestion_vote_vote_type: 2}]
Is there a way to add a value that subtracts downvote from upvote which would return something like
[{vote_type: total,suggestion_vote_vote_type: -1}]
Thank you,
Dave
Comments
-
Hi @David Lundvall! 👋
I think you can do this by creating a variable with your desired properties and using the subtract filter to subtract downvote from upvote.
Also, here is a quick demonstration of how you can manipulate data from addons:
Let me know if this answers your question. 😊
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback