# A very simple addition program

**URL:** <https://community.wolfram.com/t/a-very-simple-addition-program/16737>\
**Category:** Questions\
**Tags:** ui-ux-and-ide\
**Created:** [September 16, 2020, 5:25am UTC](https://community.wolfram.com/t/a-very-simple-addition-program/16737 "2020-09-16T05:25:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wkdrpqkfk](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@wkdrpqkfk](https://community.wolfram.com/u/wkdrpqkfk)\
**Post date:** [September 16, 2020, 5:25am UTC](https://community.wolfram.com/t/a-very-simple-addition-program/16737/1 "2020-09-16T05:25:25Z")

</div>

Nice to meet you.  
I am a beginner beginner.  
I’m going to start with a very simple addition program…  
I want to show the case of true and false in the pop-up window.  
How can I do it?

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/50d09c49-6a30-496d-a39b-0bacab717cfc)

[Untitled-3.nb](https://community.wolfram.com/uploads/short-url/m5Tojwz93QGE8QtRzqqiofauQ52.nb) (2.22 KB)

---

<div class="post-metadata">

**Author:** ![wkdrpqkfk](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@wkdrpqkfk](https://community.wolfram.com/u/wkdrpqkfk)\
**Post date:** [September 17, 2020, 5:25am UTC](https://community.wolfram.com/t/a-very-simple-addition-program/16737/2 "2020-09-17T05:25:44Z")

</div>

Dynamic[MatchQ[x + y, z]]was the answer!! I found it. Thank you.

But, what if you check true or false and want to reset it again?

---

<div class="post-metadata">

**Author:** ![wkdrpqkfk](https://avatars.discourse-cdn.com/v4/letter/w/9f8e36/32.png) [@wkdrpqkfk](https://community.wolfram.com/u/wkdrpqkfk)\
**Post date:** [September 17, 2020, 5:55am UTC](https://community.wolfram.com/t/a-very-simple-addition-program/16737/3 "2020-09-17T05:55:03Z")

</div>

`Column[{Row[{InputField[Dynamic\[x\], Number]; x = RandomInteger[50], "+", InputField[Dynamic[y], Number]; y = RandomInteger[50], "=", InputField[Dynamic[z], Number]}], PopupWindow[Button["Click Here"], {Dynamic[MatchQ[x + y, z]], Button["Reset", DialogReturn[***Refresh[]***]]}]}]`

I want to go back to the beginning when I press the button, but I don’t know.  
Still, it’s fun to know one by one.

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [September 17, 2020, 1:31pm UTC](https://community.wolfram.com/t/a-very-simple-addition-program/16737/4 "2020-09-17T13:31:49Z")

</div>

Welcome to Wolfram Community! Please make sure you know the rules: [https://wolfr.am/READ-1ST](https://wolfr.am/READ-1ST)

The rules explain how to format your code properly in both your post and reply. If you do not format code, it may become corrupted and useless to other members. Please **EDIT** your post and make sure code blocks start on a new paragraph and look framed and colored like this.

```
int = Integrate[1/(x^3 - 1), x];
Map[Framed, int, Infinity]

```

You can also embed notebook or attach notebook.

 ![ScreenShot2020-04-10at6.10.59PM.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50feff4a0bbc61bdedec57d3625d8a38ade7ce64.png)
