1. Are you ready for the Galaxy S20? Here is everything we know so far!

Tasker math expression does not evaluate

Discussion in 'Android Apps & Games' started by androidgeek2019, Jun 11, 2019.

  1. androidgeek2019

    Thread Starter

    Hi,

    I use an expression
    if (%TIMES-%Offtime)
    ...
    Endif
    %TIMES = builtin variable of current time (e.g. 1560123456)
    %Offtime = a variable set by me which contains an earlier time e.g. 1560000000.

    which does not work, it appears that arithmetic expressions are not supported.
    E.g when I log %TIMES-%Offtime then I see literally "1560123456-1560000000" instead of 123456 which is the numeric result.

    Documentation of Tasker lacks anything about how to use arithmetic expressions.

    How should I use them ?
     

    Advertisement

  2. electricpete

    electricpete Android Expert

    arithmetic is definitely supported.

    many actions (like variable set) have a checkbox labeled "do maths" which forces Tasker to mathematically evaluate the expression.

    make sure that box is checked.
     

Tasker (Download)

Loading...

Share This Page

Loading...