Only if you use PBPL instead of PBPW then yes. You can make e.g. comparisons for negative numbers.
In the abobe example although Bval is byte, internally the PBPL holds the temporary result in a long variable which in turn can hold negative numbers too.Code:Bval VAR BYTE Bval = 0 IF ((Bval – 1) < 0) THEN negative
So the result of the IF-THEN will goto negative.
Ioannis




Bookmarks