Hi,
I’m trying to do something incredibly simple, but I’m stuck in combining switch and boolean functions which overcomplicate things. Maybe somebody can point me in the right direction, this is what I try to accomplish:
There is an object with 3 keys
object
Main Salon Door Open: 0
Main Salon Door Closed: 1
Main Salon Door Partially Open: 0
each 1 value is excluding the other 2, there can only be one 1 value. as a door can only be in 1 state at the same time.
From these 3 booleans I would like to get single key output with a value according to the following logic
*
object*
Main Salon Door Open: if 1 –> Status: 1
Main Salon Door Closed: if 1 –> Status: 2
Main Salon Door Partially Open: if 1 –> Status 3
can somebody please tell me the most efficient and simple way to do this?
thanks!