E0019: a condition that is not BOOL
IF, ELSIF, WHILE, UNTIL and an SFC transition take a BOOL
condition. There is no implicit test against zero.
VAR n : INT; END_VAR
IF n THEN ... (* E0019 *)
IF n <> 0 THEN ... (* fixed *)
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
IF, ELSIF, WHILE, UNTIL and an SFC transition take a BOOL
condition. There is no implicit test against zero.
VAR n : INT; END_VAR
IF n THEN ... (* E0019 *)
IF n <> 0 THEN ... (* fixed *)