IMatch 2018 Sneak Peak: Variable Math Magic

Started by Mario, May 01, 2018, 08:29:59 PM

Previous topic - Next topic

Mario

By popular demand, I have decided to add some simple mathematical functions to variables. This may be helpful in a number of situations.

The new math function can add, subtract, multiply and divide the value of a variable. For example:

{File.Height|cast:int;math:add,1000} adds 1000 to the height of the image.

{File.AT.Notes.Value|cast:real;math:mul,1.19,2} adds 19% to the value of the Attribute Notes.Value and returns a number with two decimal digits: 98.50 => 117.22.

Simple, but useful.

Don't forget to save a few dollars per month so you'll have the money to upgrade available when IMatch 2018 comes out ;D
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Cool! Great!
Thanks a lot, this is VERY helpful!
Variables und some mathematical functions: unbeatable!  ;D
Best wishes from Switzerland! :-)
Markus

sinus

Quote from: Mario on May 01, 2018, 08:29:59 PM
Don't forget to save a few dollars per month so you'll have the money to upgrade available when IMatch 2018 comes out ;D

Saving for {Application.Name} each month {File.AT.saving.worth-for-it|cast:int;math:add,20}

Someting like this? 8) ;D
Best wishes from Switzerland! :-)
Markus

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook