In ALC, if the type of the used variable is integer, the automatic line coloring (ALC) will not work correctly in all cases.
In this case, a four values of the variable are used which are (0,1,2,3). two of these values (1,2) are working as intended, and the other two (0,3) are not working #and the line color in the screen will be the first color in source colors in ALC configuration in project configuration.
we want the ALC to behave as follow:
- in case the variable value is zero or three which represent intermediate condition and error condition, a specific error color will appear.
- in case the variable value is one which represent open condition, a specific color for open condition will appear.
- in case the variable value is two which represent close condition, a specific color for close condition will appear.