RESULT

RESULT V

RETURN VALUE OF FUNCTION

  • Type: Command
  • Parameter: 0
  • Group: Structures

ACTION

The command RESULT defines the return value of function

SYNTAX: RESULT V

  • V = return value of function (integer, real or string).

USE

  • The command RESULT is used to define the return value of function

ERROR

  • If V is not a correct expression (arithmetic or string).

EXAMPLE

dim i%

for i%=1 to 10

print double(i%)

next i%

end

fnc double(j%)

result 2*j%

end_fnc

SEE ALSO

FNC

END_FNC

EXIT_FNC