Skip to main content

valueIsEqualTo

Short summary​

This assertion method checks if the current value is equal to the expected value

Parameters​

NameTypeCommentKind
currentValueDINTcurrent value to checkinput
expectedValueDINTexpected value to compareinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD valueIsEqualTo
VAR_INPUT
(* current value to check *)
currentValue :DINT;
(* expected value to compare *)
expectedValue :DINT;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR