It is a common task to swap the values of two variables.
The basic idea is to use a third temporary variable like this:
I have just learned that there is a better way with multiple assign:
Simple, and clever
You can ofcourse use more than two variables/values.
Find quick help here to get you started with Hollywood
1 post • Page 1 of 1