You are here

Cannot change units of variable

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?

Thu, 18/02/2016 - 16:37
Fri, 19/02/2016 - 16:10


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.