# Simple math actionscript

**URL:** <https://forum.kirupa.com/t/simple-math-actionscript/253091>\
**Category:** flash\
**Created:** [February 27, 2008, 2:21am UTC](https://forum.kirupa.com/t/simple-math-actionscript/253091 "2008-02-27T02:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_elekes](https://avatars.discourse-cdn.com/v4/letter/t/8baadc/32.png) [@Terry\_elekes](https://forum.kirupa.com/u/Terry_elekes)\
**Post date:** [February 27, 2008, 2:21am UTC](https://forum.kirupa.com/t/simple-math-actionscript/253091/1 "2008-02-27T02:21:05Z")

</div>

I am hoping that someone can explian why this code doesn’t work.  
var a = myNum.text;  
var b = myNumb.text;  
var c = myAnswer.text;  
answer\_btn.onRelease = function() {  
if (c=a+b) {  
trace(“ok”);  
}  
};  
All the text boxes are set to input and I get no errors but no message in the output box  
What I am trying to do is to be able to input numbers and then press a button to check your answer.
