number NUM1
IF (GetNumber ("Please enter a number x", 1, NUM1))
{
IF (NUM1 == 2)
result ("You entered:"+NUM1+"\n")
}
{
IF ((NUM1 != 2))
result ("Your calculation was terminated.")
}
