Dim numIsOdd As Boolean = (num And 1)And
Dim numIsOdd As BooleanThey both find return True if they find num to be an odd number, but the first one is actually minutely faster.
If num Mod 2 = 1 Then
numIsOdd True
Else
numIsOdd False
End If
Gaming, The Video Games Industry and Other Interests