Noob Question

Please tell me a better way to do this if u know of any? Is ternary only option?
image.png
Was this page helpful?