ID:177088
 
What is wrong with this...

mob/verb
Add()
number1 = input("What is the first number you want to add?") as num
number2 = input("What is the second number you want to add?") as num
number1 += number2 == addresult
alert("Your result is [addresult].")

var
number1
number2
addresult

When I input two numbers to add it just gives me a period.

Thanks,
Punkrock546
Your problem is this line:
number1 += number2 == addresult
It should be
addresult = number + number2

In your original code, no changes were made to addresult, so it stayed as null.

-AbyssDragon
In response to AbyssDragon
== is the comparison operator. = is the assignment operator.
In response to AbyssDragon
Thanks.

Punkrock546