I am looking for a little help to finish off this script. The script as it is works, however, I want it to speak the sum of the 2 numbers. I have tried a few different ways but I can't get it. Hey, I pretty proud of getting this far with it. I've made a comment in the code of what I want it to say.
$heard = "speech"
if($Heard = "won")
$x = 1
$x = 2
if($heard = "plus one")
$y = 1
elseif($heard = "plus two")
$y = 2
#print($x + $y)
if($heard = "what does that equal")
#This is where I want it to say something like "$x plus $y equals the sum" or
for example "1 plus 2 equals 3" (if those were the numbers it heard)
print($x + $y)
As always any help is appreciated,