Only allows transactions to commit that do not fail- rollback

Hi,

I am trying to do a series of transactions within a loop, where I want to set a specific parameter, in this instance an angle a parameter to drive some geometry.

I have my transaction before the loop and once the loop ends.

If the parameter I enter is not possible it tries to change the parameter and then it spits back an error so I need to change my panel. Is there a way where I can see if the family will recreate and if it can not, it wont try and change it from its original value- I believe this is a rollback.

I can of course rollback everything if there is an error, but ideally I just want to rollback the ones that do not work but allow the transaction to occur that will work.