One is a statement and the other is a function. This means that the statement version can only contain (one or more) statements that do not return a value, whereas the other can only contain an expression that returns a value. Which is used depends on the context.
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
One is a statement and the other is a function. This means that the statement version can only contain (one or more) statements that do not return a value, whereas the other can only contain an expression that returns a value. Which is used depends on the context.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum