Get your own free workspace
View
 

Return

Page history last edited by Gamemaster 3 years, 11 months ago

 

Return

Usage:

                Return([Value])

Description:

The Return command returns from a function, optionally returning a value. If called from the Main function (or whichever function the script started in), it causes the script to end.

Example:

                Function Main()
                        Result = Add(5, 2)
                        Output(Actor(), Result) // Displays 7
                        Return()
                End Function

                Function Add(a, b)
                        Return(a + b)
                End Function

Comments (0)

You don't have permission to comment on this page.