Is there a way not use nested If statements
Application Type

I have a list that filters records if the record is true the container or the list item is green.  If it is false the list item container is red.  If the state of the record is null the container is yellow.

As you can see i have an If statement nested after the False.

Is there a widget or some other elegant way to do this?

Thank You

A somewhat more elegant approach would be something like this:

Where you set the class attribute of the container based on the State variable:

If(State = "True", "Container-Program-Results-Green", If(State = "False", "Container-Program-Results-Red", "Container-Program-Results-Yellow"))

This way, you only need to create the container and its' contents once.

Kind regards,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.