I am looking to compare against 2 values, one of them being a integer and the other being the amount of references from that object. Then it should subtract the amount of references from the integer and then it will update a second integer field with the new total.
If any more information is required I would be more than happy to provide.