Cannot change units of variable

Project:Simile
Version:6.6
Component:User interface
Category:support request
Priority:normal
Assigned:jaspert
Status:active
Description

Hi, I had a variable in a model that I wanted to change from an 'int' value to a 'boolean' one because it was only ever used in comparisons. But when I change the equation I get a message that says "You are not allowed to convert implicitly from an "int" value to a "boolean" value..."

Can I change it to boolean or do I have to delete it and add a new variable?

Comments

#1

Assigned to:Anonymous» jaspert

#2

What you can do is edit the equation in the equation dialogue box, and delete the units or fill in your own units before OKing it. This will allow the units to be updated and propagate the change to any other components which refer to that one. I'm thinking of making this an option that is offered if you do not delete the old units and the new equation is incompatible with them.