valueIsInRangeOf
Short summary
This assertion method checks if the current value is inside a limit
Attention:
limits are included: valueIsInRangeOf(tod#3:0:0, tod#3:0:0, tod#3:0:0) is a true assertion
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| lowerLimit | TOD | lower limit for the current value | input |
| currentValue | TOD | current value to check | input |
| upperLimit | TOD | upper limit for the current value | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD valueIsInRangeOf
VAR_INPUT
(* lower limit for the current value *)
lowerLimit :TOD;
(* current value to check *)
currentValue :TOD;
(* upper limit for the current value *)
upperLimit :TOD;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR