Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

return

Purpose

Return a value from a user defined function

Description

Returns a value from a function and resumes execution from the point where the function was called

Syntax

function name() ... return value // function with no arguments

function name(argument1, ... argumentn) ... return value // function with n arguments

Arguments

name name of the function

argument1 first parameter of the function

argumentn last parameter of the function

value return value of the function (void if no value is returned)

Example

y = 0
for i = 1 to 11 loop
    square = calculateSquare( i )
    printAt( 0, y, square )
    y += 1
repeat

update()
sleep( 3 )

function calculateSquare( num )
    num *= num
return num

Associated Commands

function, return, void

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.