Absolute value function

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
nochedelmono
Posts: 6
Joined: 29 Jan 2013 22:15

Absolute value function

Post by nochedelmono » 06 Mar 2013 22:12

An absolute value function would be very useful and hopefully simple to add .... something like abs (num). Thanks so much for an already great app.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Absolute value function

Post by Martin » 08 Mar 2013 14:35

I will add the abs function in the next update.

You have to use the following expression for the moment:
a=-3;
b=if(a<0) -a else a;

Locked