How many variables can be returned from a function?
If more than one, would you please show example code?
Thanks
Using RETURN in a function
- 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:
- Contact:
Using RETURN in a function
The only thing that gets me down is gravity...
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: Using RETURN in a function
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.
But don't forget about scope syntax which allows you to access any variable of any function.