Skip to main content

valueIsGreaterThan

Short summary​

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

Parameters​

NameTypeCommentKind
currentValueSINTcurrent value to checkinput
lessValueSINTless than lower limitinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

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

Implementation​

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