hello
I'm trying to do a delta check between neighboring cells value on the same column.
For( i = 1, i <= N Row( dtB ), i++,
    If(
        i == 1,
            If( Abs( :Delta[i] - :Delta[i + 1] ) <= 0.1,
                dtB:Check[i] = "Pass",
                dtB:Check[i] = "Fail"
            ),
        i == N Row( dtB ),
            If( Abs( :Delta[i] - :Delta[i - 1] ) <= 0.1,
                dtB:Check[i] = "Pass",
                dtB:Check[i] = "Fail"
            ),
        If( Abs( :Delta[i] - :Delta[i + 1] ) <= 0.1 | Abs( :Delta[i] - :Delta[i - 1] ) <= 0.1,
            dtB:Check[i] = "Pass",
            dtB:Check[i] = "Fail"
        )
    )
);
i get this result
but line 5 should not fail
when I check it thru the log it seems like a bug or I'm missing something
appreciate your inputs
i
/*:
5
//:*/
:Delta[i]
/*:
0.3
//:*/
:Delta[i+1]
/*:
0.4
//:*/
abs(:Delta[i] - :Delta[i+1])
/*:
0.1
//:*/
abs(:Delta[i] - :Delta[i+1]) <= 0.1
/*:
0
					
				
			
			
				
	Thanks, Adam