Didn’t think that was a total fix … but it is a syntax logic error.
Could cut that down a bit too. (maybe, you’ll have to look it over)
if ValueFolder.CurrentArm.Value == 'Left' then
ValueFolder.CurrentArm.Value = 'Right'
else ValueFolder.CurrentArm.Value = 'Left'
end