Solidity Control Structures Main Tips
- An arbitrary number of the parameters may also be returned as output.
Solidity Control Structures
- ? :
Parentheses, for conditionals, must not be omitted, however, curly braces are possible to omit around bodies that are single-statement.
Returning Multiple Values
Whenever a function possesses multiple output parameters, return (v0, v1, …, vn) may return more than one value. The component amount has to be the same as the number of parameters used for output.