Script the only way home?

Script the only way home?

Hi

So I have the b rule as you can see below that updates 'Alert Type' if it is in the description. Works fine, but my issue is that I have 43 alert types.

Using this method I would have to create 43 new b rules one for each. Plus I have other fields I need to do this same with.



Feels like I should be able to do all these field updates in one big script? Is that correct? If so, can you provide and example that I can use to get started with?