Skip to main content

valueIsOdd

Short summary

This assertion method checks if the current value is odd

Parameters

NameTypeCommentKind
currentValue__UXINTcurrent value to checkinput
messageAssertMessagemessage if the assertion is falseinput

Code

Declaration

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