HP Prime for All
English
Русский
News
Hardware
Articles
Docs
HP Apps
Software
Docs
:
Commands
:
RETURN
Syntax
RETURN expression;
Description
Exits from a function and returns the value of expression (optional).
Example
EXPORT FACTORIAL(N) BEGIN IF N==1 THEN RETURN 1; ELSE RETURN N*FACTORIAL(N-1); END; END;
RETURN — Discussion
↑Back to top