zenon logic

zenon logic

hi,
i need to develop a program in my project.
there are 5 bool variable available and if any one of the variable is high rest of the variables should be reset .
That is we have to over write all other variable to zero and show the last incoming variable alone. the variable which comes last should show first and rest of them should be zero or inactive.