# Is there anyway of doing simple math using exchange nodes?

**URL:** <https://discourse.nodered.org/t/is-there-anyway-of-doing-simple-math-using-exchange-nodes/61624>\
**Category:** Dashboard\
**Created:** [22 April 2022 03:02 UTC](https://discourse.nodered.org/t/is-there-anyway-of-doing-simple-math-using-exchange-nodes/61624 "2022-04-22T03:02:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![krr813](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@krr813](https://discourse.nodered.org/u/krr813)\
**Post date:** [22 April 2022 03:02 UTC](https://discourse.nodered.org/t/is-there-anyway-of-doing-simple-math-using-exchange-nodes/61624/1 "2022-04-22T03:02:45Z")

</div>

I just started using Node-RED, I'm sorry if this was already asked question.

Question is Is there anyway of doing addition, subtraction, multiplication, division other than using function Node.  
I want to make a loop of an action without function node, is it possible? How do i do that?

---

<div class="post-metadata">

**Author:** ![mickym2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mickym2/32/36128_2.png) [@mickym2](https://discourse.nodered.org/u/mickym2)\
**Post date:** [22 April 2022 05:37 UTC](https://discourse.nodered.org/t/is-there-anyway-of-doing-simple-math-using-exchange-nodes/61624/2 "2022-04-22T05:37:50Z")

</div>

Very easy. Use a change node with JSONATA in it.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1aa492f61279064df98ce96015f8155e3c58148f.png)

---

<div class="post-metadata">

**Author:** ![krr813](https://avatars.discourse-cdn.com/v4/letter/k/ea666f/32.png) [@krr813](https://discourse.nodered.org/u/krr813)\
**Post date:** [22 April 2022 05:40 UTC](https://discourse.nodered.org/t/is-there-anyway-of-doing-simple-math-using-exchange-nodes/61624/3 "2022-04-22T05:40:03Z")

</div>

Oh god, I didn't know about this!!  
This is amazing, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 May 2022 05:40 UTC](https://discourse.nodered.org/t/is-there-anyway-of-doing-simple-math-using-exchange-nodes/61624/4 "2022-05-06T05:40:10Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
