- Index
- » Programming
- » Modelica Language
- » Help with OME
Page Start Prev 1 Next End
Help with OME
Help with OME
Sep-25-15 11:08:35
Hi everybody,
I am quite new and I would ask a little help.
the code:
a=3
b=1
equation
if a==b then
//show error message
else
//do nothing
end if;
algorithm
b:=b+1;
Someone can helpme, which code can I use for showing the error message?
thanks everybody
Re: Help with OME
Sep-25-15 11:18:35
You can do assert(a <> b, "message");
However, you cannot have two equations for b (b=3, b:=b+1). You also cannot have an algorithm like b := b+1, because this is equivalent to 0 := 1;
- sjoelund.se
- 1700 Posts
Page Start Prev 1 Next End
- Index
- » Programming
- » Modelica Language
- » Help with OME
There are 0 guests and 0 other users also viewing this topic