Assert

The Assert method can be used to indicate that the current test case has failed. Unlike the AssertEqual method, which compares the result to the expected value on its own, the comparison here must be performed in the test case’s application code, and the result of the comparison must be passed to the method as a Boolean value. If you also want to pass an error message to the calling test client, use the AssertMSG method .
Syntax
METHOD Assert
VAR_INPUT
condition : BOOL
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
condition | BOOL | A BOOL value that indicates whether the test was successful. |
Example
Assert(condition);