Ad Widget

Collapse

Function as parameter in another function.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dafus
    Junior Member
    • Feb 2016
    • 12

    #1

    Function as parameter in another function.

    Hi,

    Is there any way to use function as parameter in function? I would like value from one item use as paramater in calculated item.

    For example count("key.item",last("key.item"),10)

    I would like to calculate item from first day of month but each month has different days count.
  • dafus
    Junior Member
    • Feb 2016
    • 12

    #2
    Up. Anyone?

    Comment

    • dafus
      Junior Member
      • Feb 2016
      • 12

      #3
      I found solution. You can use macro as function paramater and you can update this macro trough API every day. So you should write a little bash script with JSON to update macro and it's done. You can use current day of month as parameter to calculate something.

      Comment

      Working...