# I am trying to make a basic calculator

**URL:** <https://discourse.nodered.org/t/i-am-trying-to-make-a-basic-calculator/1218>\
**Category:** Dashboard\
**Created:** [1 July 2018 08:40 UTC](https://discourse.nodered.org/t/i-am-trying-to-make-a-basic-calculator/1218 "2018-07-01T08:40:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [1 July 2018 11:31 UTC](https://discourse.nodered.org/t/i-am-trying-to-make-a-basic-calculator/1218/5 "2018-07-01T11:31:15Z")

</div>

All,

Thanks again for the node.warn( ) command.

I’ve put it in and found a couple of bugs with the names I used.

Granted I should have seen them sooner.

As I don’t always know the reserved words, if I use one and then realise it, I append it with a ‘\_’.

But when I mix up the variable names and the context names… well… Anyway.

While on it, have I got the context stuff right now?

I was told I was using deprecated syntax on a few posts.

Thanks.

Just in conclusion:

With the edits of the variable names and a bit of debugging, it now works.

In answer to the question about pressing two function buttons and what happens:  
It remembers and applies the first one.

This whole thing was more a test of buttons, GUI, and a bit more on parsing messages.

I did learn things.

---

_[View the full topic](https://discourse.nodered.org/t/i-am-trying-to-make-a-basic-calculator/1218)._
