MODIFYING VARIABLES
The other thing you do with variables is to change their value. You use sePutXXX to put a particular value into variable. Again, XXX has various options for the various types of data you can store in a variable. Like a JavaScript assignment, whatever value the variable held before the call is discarded in favor of the new value. If the variable is a member of a dynamic object, a dynamic put will be called to store the value.
In the same way as for reading a variable's value, each API call that modifies a variable's value does so once, meaning one dynamic put call will be made per API function call. You can use a similar technique to reading, build up the value in a temporary location then put the value once to the real location, so any dynamic put is called only once.
USING SE_TEMP AND SE_WRAPPER_TEMP