-
Notifications
You must be signed in to change notification settings - Fork 0
Features Return
Kameron Brooks edited this page Aug 17, 2019
·
1 revision
return stops the execution of the script, and can be used to return a value to the calling application
return; // exits the script return 1; // exits the script and returns 1 to the calling applicationreturn stops the execution of a function, and returns the specified value to the caller
string func() {
return "hello";
}
string val = func(); // set val to the value that is returned by funcQuestions? Comments?
Contact me at kameron@creation-wasteland.com
Follow on Twitter: @wasteland_11
Copyright 2019 © Kameron Brooks