I'm having sequential problem i guess

I have three parts A, B and C . For part- A I have to set the “Fire Rating” value according to Fig(1) and it goes like if I find out “1-hr” in type name I will set its fire rating as “060”, if it’s “2-hr”, it’ll be “120” and the rest will be “000”. That’s for part A.

For Part B it’s not in the figure I will briefly explain. For Part B I have to set Type mark by combination of “Function + Type Comments + Subtype + Width + Fire Rating” and set that into “Type Mark” values.

For Part C I have to extract out the Parameter values from “Description” add them into the combination of part B and set Type Name by using “Clockwork’s Element.SetName”. So, the Type Name will change from Fig 2 to Fig 3. But if I run for like 2nd time the problem becomes the Type Name changed already, I cannot find “1-hr” and “2-hr” anymore so, the Fire Rating values will become all “000”. How can I do to get the correct Fire Rating value, even if I changed the “Type Name”.

Screenshot 2024-01-30 093157

Hi Myat Min,
I think it would be better to separate out queries into individual posts
Part A
You are trying to change a Type parameter from a list of wall type names so we can reduce to unique types and use a filter to select the ones that pass

Part C
I would suggest testing for ‘060’ and ‘120’ (Using a filter) before Part A so that those element types are screened out once set

What do you mean by testing before Part A?. Actually there’s no value for Fire Rating at first. That’s why I have to check from type name.

Similar to what Mike is saying, just change your condition to check for the text or the numeric version of the Fire Rating (ie. look for 1-hr or 060). Then you don’t have to worry about filtering or handling types that have already been modified.

Can you show me the example? Is there any possible way to filter or 1-hr and 2-hr at once?

There are many ways to filter - the more you use Dynamo and try things the easier it will become
I have used a list of strings we want to filter out and a List.AnyTrue to set to true if anything in the list is contained in the parameter value. Using the list levels to get the result you want is one of the core skills of Dynamo. The Not node flips the boolean mask so what we want is excluded - not absolutely necessary but assists with workflow

What you really have is just a couple nested condition statements. You could do this with a code block pretty easily if you just look into the structure of conditionals and nested conditions:
test ? result_if_true : result_if_false;