how i use if condition in mates?

if there is a box is locked by locker ,the door didn't open
also if i open the locker ,the door opened
how i use this mate in my box ?

2 Answers

Just need to update the model every time you lock/unlock the locker.