Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Parameters

$
0
0
Hello all
sorry for asking such a bogstandard question, but I've been struggling with this since I started learning this language

[ autoit ]      
Func max($x, $y) If $x > $y Then Return $x Else Return $y EndIf EndFunc

in the script above, why the use of the parameters after the the max function, would the below script not just do the same??

[ autoit ]      
Func max() If $x > $y Then Return $x Else Return $y EndIf EndFunc

again, sorry for the basic level of the question, suppose it reflects my understanding :P

P. S. It's not just this script I have a problem with, it's the use of parameters in general

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>