Even or odd number

Results 1 to 2 of 2

Thread: Even or odd number

  1. #1
    Join Date
    Dec 1969

    Default Even or odd number

    Do you have any hint or idea on how I can determine if a number is even or odd with VBScript?<BR><BR>Thanks for your help.<BR><BR>Edwin

  2. #2
    Join Date
    Dec 1969

    Default If (num MOD 2)=0 Then even Else odd

    Of, if the number is an integer, you can do:<BR><BR>If (num AND 1) = 0 Then even Else odd<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts