Инструменты пользователя

Инструменты сайта


en:autorun:documentation:func_return

Return

Return [expr]

Exits the user function.

The keyword may be followed by an expression, the result of which will be returned by the function. An expression can only be in functional notation.

Examples

r = MyFunc(1)
 
# r = Positive
 
Func MyFunc(var)
  If var > 0 Then
    Return "Positive"
  ElseIf var < 0 Then
    Return "Negative"
  Else
    Return "Zero"      
  EndIf
EndFunc

Related

Func...EndFunc

en/autorun/documentation/func_return.txt · Последнее изменение: 2022/09/26 17:45 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki