valueIsLessThan
Short summary
This assertion method checks if the current value is less than the greater value
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| currentValue | TOD | current value to check | input |
| greaterValue | TOD | greater than upper limit | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD valueIsLessThan
VAR_INPUT
(* current value to check *)
currentValue :TOD;
(* greater than upper limit *)
greaterValue :TOD;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR
Implementation
IF (currentValue >= greaterValue) THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('valueIsLessThan'));
END_IF