yalil Posted May 11, 2024 Posted May 11, 2024 please give me a very very simple example im new and bad at ENG
argumentum Posted May 11, 2024 Posted May 11, 2024 Then learn a bit of English. If / Then / Else / and in this case Return, is just plain English Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted May 11, 2024 Posted May 11, 2024 (edited) ...moreover, a Function, plays a function that in turn can Return a value. Forget programming until you can get some reading comprehension as otherwise you would not know what is been presented in front of your eyes. Edited May 11, 2024 by argumentum SOLVE-SMART 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
AndrewG Posted May 11, 2024 Posted May 11, 2024 (edited) Return statement is used to exit from the current subroutine and resume at the point in the script immediately after the instruction which called the subroutine, known as its return address. Consider the following mathematical expression. 2 + 2 = 4 Expression breakdown 2 augend + addition operator 2 addend = equality sign 4 sum The following AutoIt script will add two integers, numbers together and returns the sum. Global $iSum Func _Calculate($iAugend, $iAddend) Return $iAugend + $iAddend EndFunc $iSum = _Calculate(2, 2) ; calling instruction, return address MsgBox(0, "Sum", "The sum of 2 + 2 = " & $iSum) Edited May 15, 2024 by AndrewG
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now