Skip to main content

valueIsGreaterThan

Short summary

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

Parameters

NameTypeCommentKind
currentValue__XINTcurrent value to checkinput
lessValue__XINTless than lower limitinput
messageAssertMessagemessage if the assertion is falseinput

Code

Declaration

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

Implementation

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