Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability in magic tag parsing to do calculations #2320

Closed
sc0ttkclark opened this issue Aug 15, 2014 · 6 comments
Closed

Add ability in magic tag parsing to do calculations #2320

sc0ttkclark opened this issue Aug 15, 2014 · 6 comments
Labels
Status: Help Wanted We have not prioritized this yet, but you can help make it happen to speed it up Status: Need Tasklist The work requires a tasklist to be created in order to ensure all parts involved are completed Type: Feature Features that add entirely new functionality that was not there before

Comments

@sc0ttkclark
Copy link
Member

Add ability in magic tag parsing to do calculations:

{@field_name*other_field} or {@field_name*100}

Including normal math operators for:

  • * (multiplication)
  • - (division)
  • + (addition)
  • - (subtraction)
  • % (modulus)
@sc0ttkclark
Copy link
Member Author

Updated description

@Shelob9
Copy link
Collaborator

Shelob9 commented Aug 15, 2014

This would be very easy to add to Templates once #2317 is complete, as we'd be able to add something like [math field="{@field_name}" operator="*" by="100"] or [math field="{@subtotal}" operator="*" by="{@tax_rate"]

@sc0ttkclark
Copy link
Member Author

I like the magic tag format, keeps things simple and it's super easy to parse, shortcodes require lots of extra typing and magic tags are supposed to be for keeping things short.

@sc0ttkclark
Copy link
Member Author

Also I've already built the logic in another project (@pglewis knows which) so it's not too tough.

@hefejeff
Copy link

Has this feature been implemented yet?

@sc0ttkclark
Copy link
Member Author

No, not yet

@sc0ttkclark sc0ttkclark added the Status: Need Tasklist The work requires a tasklist to be created in order to ensure all parts involved are completed label Dec 29, 2015
@sc0ttkclark sc0ttkclark modified the milestones: Pods 3.1, Pods Future Release Dec 29, 2015
@sc0ttkclark sc0ttkclark modified the milestones: Backlog, Backlog Archive Sep 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Help Wanted We have not prioritized this yet, but you can help make it happen to speed it up Status: Need Tasklist The work requires a tasklist to be created in order to ensure all parts involved are completed Type: Feature Features that add entirely new functionality that was not there before
Projects
None yet
Development

No branches or pull requests

3 participants