I made a slight change to your code:
DECLARE @I INT = 0;
WHILE @I <[highlight="#ffff11"]=[/highlight] 10
BEGIN
IF @I%2 = 0
IF TAN(@I) > 0
PRINT 'Value ' + CAST(@I as char(1)) + ' is EVEN and the TANGENT is greater than zero'
ELSE
PRINT 'Value ' + CAST(@I as char(1)) + ' is EVEN and the TANGENT is less than or equal to zero'
ELSE
IF TAN(@I) > 0
PRINT 'Value ' + CAST(@I as char(1)) + ' is ODD and the TANGENT is greater than zero'
ELSE
PRINT 'Value ' + CAST(@I as char(1)) + ' is ODD and the TANGENT is less than or equal to zero'
SET @I += 1;
END
And the output I got is:
Value 0 is EVEN and the TANGENT is less than or equal to zero
Value 1 is ODD and the TANGENT is greater than zero
Value 2 is EVEN and the TANGENT is less than or equal to zero
Value 3 is ODD and the TANGENT is less than or equal to zero
Value 4 is EVEN and the TANGENT is greater than zero
Value 5 is ODD and the TANGENT is less than or equal to zero
Value 6 is EVEN and the TANGENT is less than or equal to zero
Value 7 is ODD and the TANGENT is greater than zero
Value 8 is EVEN and the TANGENT is less than or equal to zero
Value 9 is ODD and the TANGENT is less than or equal to zero
Value [highlight="#ffff11"]*[/highlight] is EVEN and the TANGENT is greater than zero
How do I handle this?
-----------------------------------------------------------------------
Known is a DROP, Unknown is an OCEAN.:ermm: