Hi
I whant to check out if the first bit ( can be changed to second bit) in a woord is set to one,
I have a db with 100 words.
case first bit OF
1:
for INDEX := StartAdressDB TO StoppAdressDB
IF StartAdressDB OR StoppAdressDB = W#160000_0001 Then
OutPut = 1;
else
End_if
End_Case
But it says ERROR: You most use a Bool in a IF statment, Are they some other way to compare bit in woord in a FOR LOOP????
// Berra
I whant to check out if the first bit ( can be changed to second bit) in a woord is set to one,
I have a db with 100 words.
case first bit OF
1:
for INDEX := StartAdressDB TO StoppAdressDB
IF StartAdressDB OR StoppAdressDB = W#160000_0001 Then
OutPut = 1;
else
End_if
End_Case
But it says ERROR: You most use a Bool in a IF statment, Are they some other way to compare bit in woord in a FOR LOOP????
// Berra