Skip to main content

valueIsEven

Short summary

This assertion method checks if the current value is even

Parameters

NameTypeCommentKind
currentValueUINTcurrent value to checkinput
messageAssertMessagemessage if the assertion is falseinput

Code

Declaration

METHOD valueIsEven
VAR_INPUT
(* current value to check *)
currentValue :UINT;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR