Arithmetic operation during update/upsert

Hi,

I have a scenario where in I want to update a document however while I am updating i want to also do an arithmetic (sum) operation on the existing field value, for example - if a existing field x = 10 then while update the new x = 5 then i need my document to add these two as x = 10+5 = 15.

Please let me know if this is possible.

Thanks,

Yasho

this should be possible through scripted updates.