The return statement ends the execution of a function and return a value, if applicable. Either:
func myMethod
{
if condition:
return
doSomethingElse()
}
OR
func mySecondMethod as int
{
if condition:
return 0
return 100
}
The return statement ends the execution of a function and return a value, if applicable. Either:
func myMethod
{
if condition:
return
doSomethingElse()
}
OR
func mySecondMethod as int
{
if condition:
return 0
return 100
}