Skip to main content

valueIsEqualTo

Short summary​

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

Parameters​

NameTypeCommentKind
currentValueUSINTcurrent value to checkinput
expectedValueUSINTexpected value to compareinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

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