Adding Problem

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.