MATLAB: How to know which input will switch block pass programmatically

simulinkswitch

Hi,
I'm analysing simulink modell. I have a problem to know which input (1st or 3rd) will switch block pass. With the criteria and second input value can man easily manually know which input will pass. But how can I know it by code?
Thanks
Xiangming
Related Question