Is it best practice to use the exact same if statement in two different places?
I'm using the following if statement:
- // Display Writer Rate field if Position contains "Writer" and Type is "Freelancer"; hide otherwise.
- hide Writer_Rate;
- if ((input.Type == "Freelancer") && input.Position_s.contains("Writer"))
- {
- show Writer_Rate;
- }
I've included this statement within the On User Input section of two different fields: Position and Type. Is that best practice? It feels messy to me (e.g. if you wanted to amend the if statement, you'd need to remember to do it in the two different places).