Step

block Step "Ordinary step (= step that is not active when simulation starts)"
    output Boolean active "= true if step is active, otherwise the step is not active";

    extends Interfaces.PartialStep;
initial equation
    active = false;
equation
    active = localActive;

    annotation (
        Icon(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Text(
                    extent = {
                        {-200, 110}, 
                        {200, 150}},
                    textString = "%name",
                    lineColor = {0, 0, 255}), 
                Rectangle(
                    extent = {
                        {-100, 100}, 
                        {100, -100}},
                    fillColor = DynamicSelect({255, 255, 255}, if active then {0, 255, 0} else {255, 255, 255}),
                    fillPattern = FillPattern.Solid)}),
        Diagram(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Rectangle(extent = {
                    {-100, 100}, 
                    {100, -100}})}));
end Step;