RosettaCodeData/Task/Call-a-function/REXX/call-a-function-6.rexx

12 lines
903 B
Rexx
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
/*╔════════════════════════════════════════════════════════════════════╗
Obtaining the return value of a function.
There are 2 ways to get the (return) value (RESULT) of a function.
*/
currYear= yearFunc()
say 'the current year is' currYear
call yearFunc
say 'the current year is' result /*result can be RESULT, it is caseless.*/