Hello
I am creating a job which goal is to update certain fields of a table ( via recid)

I am scanning a CSV file and before doing any update , I want to include a validation for each column and values.
If the values are strings this is fine, however when it comes to fields which are enum type or numeric I don't know how to validate  properly. 
Let me explain better
For example , column 3 has    0 or 1 as possible   values  ,
I  want the script to throw an error if the value  ( from the file ) is not 0 or 1 and it is coherent with the enum type ( WorkTimeControl 0 - open , 1 -closed)
This is how I have declared the variable


however , even if in the file is 0 , the code is returning true in the condition below and throwing the error
if(str2enum(322,WorkTimeControl) != 0 || str2enum(322,WorkTimeControl) != 1 )
{
 INFO(STRFMT("Value accepted are only 0 and 1,the value is %1 instead.Update will be stopped. LineRecId %2",WorkTimeControl,LinesRecId));
 k++;
 c = csvFile.read();
 break;
}
What I am doing wrong?