There’s a KM plugin for setting the values of multiple variables concisely. See
(Sorry @Jack_Bravo - this doesn’t address your original question.)
For more information, see the wiki Searching the Forum for Answers section.