"polilop" <fm******@inet.hr> wrote in message

news:el**************@TK2MSFTNGP09.phx.gbl...

how can i check if a variable is an even number?

Assuming the variable identifier is 'n':

If (n Mod 2) = 0 Then ...

Mod is the VBS modulus operator, it returns the remainder of a division

operation.

-Mark