Change Color Based on 3 boolen Values

I am trying to use the basic conveyor but I have 4 to 5 states that i need to show them with each with a boolean value based on level of severity. Running / Energy Management / Full / E-Stop. I have tried to set up a if statement but it tells me i cant have nested ifs. Any help with this would be amazing thanks!

I would look at using binEnc() and a case(). You can do the binEnc() as the value then set your case() to return the states you want based on the value returned from the binEnc().