Using if in code block language to define multiple values

I have a variable Nf and the variable d
Based on the value of Nf i want to set the value for Off1, Off2, Off3 etc…
Any Tips?

Thank you!

I’m going to use it for a later development in my coding process
Thank you!