warning

Navigation:  Language Reference > Statements >

warning

Previous pageReturn to chapter overviewNext page

Syntax

warning ('string',boolean);

Description

The warning function displays a message in the the log window. You can choose to display the string once (boolean = true) or every simulation step (boolean = false). It is advised to use the warning function in combination with an if-then statement or event-function.

Examples

warning('this message will be displayed every simulationstep!',false);

if time > 1

 warning('this message will be displayed every simulationstep after time > 1!',false);

end;

if x > 100 then

 warning('this message will be displayed only once after x > 100',true);

end;

if event(y) then

 warning('this message will be displayed when y is exactly 0',false);

end;