"If" does not update my collection

@digitalzemb as I said you can save the field that way.
you should read:
https://www.wix.com/corvid/reference/wix-dataset/dataset/setfieldvalues

https://www.wix.com/corvid/reference/wix-dataset/dataset/save