;AutoIt for the rest of us: Example Script #3 ; This time we will declare a function and a conditional to the mix. ;you can declare your function where ever you'd like. Let's delcare our function now. Func hello() If $decide > 5 Then MsgBox(0, "hi", "hello world") Else MsgBox(64, "No!", "go away!") EndIf EndFunc ;start main script process $decide = InputBox("Decide", "Enter a number between 1-10") ;Input box will appear with the following text. Input from this is stored in the $decide variable. hello() ;call up function by name ;More information about any of the following functions used above and more can be found in the help file in SciTE.