Skip to main content

valueIsLessThan

Short summary

This assertion method checks if the current value is less than the greater value

Parameters

NameTypeCommentKind
currentValue__UXINTcurrent value to checkinput
greaterValue__UXINTgreater than upper limitinput
messageAssertMessagemessage if the assertion is falseinput

Code

Declaration

METHOD valueIsLessThan
VAR_INPUT
(* current value to check *)
currentValue :__UXINT;
(* greater than upper limit *)
greaterValue :__UXINT;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR

Implementation

IF (currentValue >= greaterValue) THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('valueIsLessThan'));
END_IF