Skip to main content

valueIsGreaterThan

Short summary​

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

Parameters​

NameTypeCommentKind
currentValueTIMEcurrent value to checkinput
lessValueTIMEless than lower limitinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD valueIsGreaterThan
VAR_INPUT
(* current value to check *)
currentValue :TIME;
(* less than lower limit *)
lessValue :TIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR

Implementation​

IF (currentValue <= lessValue) THEN
THIS^.assertionWasWrong(
message := message,
additionalText := THIS^.getDebugInfo('valueIsGreaterThan')
);
END_IF