# Adding Problem

**URL:** <https://forum.kirupa.com/t/adding-problem/304143>\
**Category:** flash\
**Created:** [February 2, 2010, 10:49am UTC](https://forum.kirupa.com/t/adding-problem/304143 "2010-02-02T10:49:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laptopbuster](https://avatars.discourse-cdn.com/v4/letter/l/a3d4f5/32.png) [@Laptopbuster](https://forum.kirupa.com/u/Laptopbuster)\
**Post date:** [February 2, 2010, 10:49am UTC](https://forum.kirupa.com/t/adding-problem/304143/1 "2010-02-02T10:49:48Z")

</div>

I have 4 variables  
3 of which are dynamic text (variable names: ‘num1’ and ‘num2’ and ‘score’)  
1 is input text (variable name: ‘ans1’)  
‘score’ is set to ‘0’ at the begining of the frame

This is for a simple math game - what i want is coding for a button so that when you click on it, it will see if num1+num2 equals ans1 and if it is adds 1 to ‘score’

Every bit of coding I have tried does not work please help me in this.
