## 函数的介绍
//所有的子程序都可以改成函数,但是不是所有的函数都能改成子程序。
//Call 移动点击(100,100)
//function 移动点击(x, y)
// MoveTo x, y
// Delay 50
// LeftClick 1
//End Function
//重点:写一个求两个数之和,并且把结果保存到变量Result中的子程序
//利用求和子程序,把两次求和的结果作比较
//Call 求和(15, 20)
//Result1 = c
//Call 求和(10, 20)
//Result2 = c
//If Result1 > Result2 Then
// TracePrint "Result1 > Result2"
//Else
// TracePrint"Result1 <=Result2"
//End If
//
//
//Sub 求和(a, b)
// c = a + b
//End Sub
Result1 = 求和(15, 20)
TracePrint "Result1="&Result1
Result2 = 求和(10, 20)
TracePrint "Result2=" & Result2
If Result1 > Result2 Then
TracePrint "Result1 > Result2"
Else
TracePrint"Result1 <=Result2"
End If
Function 求和(a, b)
求和 = a + b
End Function