Using RETURN in a function

Post Reply
User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Using RETURN in a function

Post by rbytes »

How many variables can be returned from a function?
If more than one, would you please show example code?
Thanks
The only thing that gets me down is gravity...

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Using RETURN in a function

Post by Mr. Kibernetik »

You can return only one variable, for example to be used directly in a calculation.
But don't forget about scope syntax which allows you to access any variable of any function.

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Using RETURN in a function

Post by rbytes »

Thanks, Mr. K! :D
The only thing that gets me down is gravity...

Post Reply