This page identifies a possible issue, inconsistency, concern, error, or bug!
One of the ways Webel IT Australia helps promote tools, technologies, and languages is by donating a lot of time identifying, tracking, and reporting potential issues, in order to help vendors and developers improve the tools and technologies. In some cases, we also offer workarounds and advice for users. All issues tracked on our public site are offered most constructively and with sincerest gratitude to the tool vendors and technology developers.
DISCLAIMER: Vendors do not officially endorse issue analysis by Webel IT Australia.
Related also to this issue:
From the Simulink guide to Switch: Combine multiple signals into single signal:
Criteria for passing first input — Selection criteria to pass first data input u2 >= Threshold (default) | u2 > Threshold | u2 ~= 0 Select the condition under which the block passes the first data input. If the control input meets the condition set in the Criteria for passing first input parameter, the block passes the first input. Otherwise, the block passes the second data input signal from input Port_3.
u2 >= Threshold
Checks whether the control input is greater than or equal to the threshold value.u2 > Threshold
Checks whether the control input is greater than the threshold value.u2 ~=0
Checks whether the control input is nonzero.
There's no way to 'check whether the control input is nonzero' in Modelica.Blocks.Logical.Switch on a strictly BooleanInput.