Opened 12 years ago

Closed 7 years ago

#2167 closed defect (worksforme)

Missing parenthesis in the flattened output of some if-expressions

Reported by: Per Östlund Owned by: somebody
Priority: low Milestone: 1.13.0
Component: Frontend Version: trunk
Keywords: Cc:

Description

The flattened output of the following model is missing the parentheses around the if-expression, which are important since the equation becomes ambiguous otherwise.

model IfEquality
  Real x;
equation
  (if x < 10 then x + 1 else x) = x;
end IfEquality;

Change History (1)

comment:1 by Francesco Casella, 7 years ago

Milestone: Future1.13.0
Resolution: worksforme
Status: newclosed

As of v1.13.0-dev-155-g68350e9 I get the parentheses both with the old and new front-end.

Note: See TracTickets for help on using tickets.