RosettaCodeData/Task/Call-a-function/REXX/call-a-function-6.rexx
2023-07-01 13:44:08 -04:00

11 lines
903 B
Rexx

/*╔════════════════════════════════════════════════════════════════════╗
║ 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.*/