Are there any helpers available in the Value field of the Device State node for simple path expressions on payload references before they are saved to the device attributes?

# [Solved] Math in a the device state node?

There are some math helpers, yes. You can find a list of all the custom helpers we support here, and a list of built-in Handlebars helpers here.

0 Likes

**paul_wareham**#3

Awesome! Can you next two math helpers using multiple and subtract? E.g. {{multiply 1.8 value}} and then add 32?

0 Likes

So if I understand correctly, what you want is to multiply the value by 1.8 and then add 32 to that result? If so, you can nest helpers within helpers like so.

```
{{add (multiply 1.8 value) 32}}
```

Just like in the normal mathematical order of operations, the statement inside the parentheses will evaluate first.

1 Like

**paul_wareham**#5

Yes thatâ€™s it! It was parantheses instead of curly braces that tripped me up.

0 Likes