Not

block Not "Logical 'not': y = not u"
    extends Blocks.Interfaces.partialBooleanSISO;
equation
    y = not u;

    annotation (
        defaultComponentName = "not1",
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-90, 40}, 
                        {90, -40}},
                    textString = "not")}),
        Documentation(info = "<html>\n<p>\nThe output is <strong>true</strong> if the input is <strong>false</strong>, otherwise\nthe output is <strong>false</strong>.\n</p>\n</html>"));
end Not;