LessEqualThreshold

block LessEqualThreshold "Output y is true, if input u is less or equal than threshold"
    extends Blocks.Interfaces.partialBooleanThresholdComparison;
equation
    y = u <= threshold;

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Line(
                    points = {
                        {-8, 20}, 
                        {-54, 0}, 
                        {-8, -20}},
                    thickness = 0.5), 
                Line(
                    points = {
                        {-54, -30}, 
                        {-8, -30}},
                    thickness = 0.5)}),
        Documentation(info = "<html>\n<p>\nThe output is <strong>true</strong> if the Real input is less than or equal to\nparameter <strong>threshold</strong>, otherwise\nthe output is <strong>false</strong>.\n</p>\n</html>"));
end LessEqualThreshold;