Results 1 to 3 of 3

Thread: Loop run in odd and even number

  1. #1
    100 Club
    Join Date
    2011-08
    Location
    Vadodara, India
    Posts
    147
    Login to Give a bone
    0

    Default Loop run in odd and even number

    Hi!

    I have a looping in that looping i have to run some conditions while counter is odd number and even number.

    Kindly help!

    Thanks,

    Avinash

  2. #2
    Member
    Join Date
    2011-08
    Posts
    14
    Login to Give a bone
    0

    Default Re: Loop run in odd and even number

    It would be something like


    .
    .
    .
    if counter mod 2 =0 then
    .
    code for even numbers
    .
    else
    .
    code for odd numbers
    .
    endif

  3. #3
    100 Club
    Join Date
    2011-08
    Location
    Vadodara, India
    Posts
    147
    Login to Give a bone
    0

    Default Re: Loop run in odd and even number

    thanks for your reply, your help works great

Similar Threads

  1. 2011: Express Tools Auto Number - Skips Number in Multi-line Mtext
    By stusic in forum AutoCAD General
    Replies: 3
    Last Post: 2013-01-29, 02:38 PM
  2. Linked door number and security arrow number
    By 01chang in forum Revit Architecture - General
    Replies: 2
    Last Post: 2009-08-19, 01:54 PM
  3. Show View Number and Sheet Number in the same field?
    By kkinchen in forum AutoCAD Fields
    Replies: 3
    Last Post: 2007-03-19, 05:48 PM
  4. Replies: 5
    Last Post: 2005-12-15, 08:05 PM
  5. Block Insert Array (Loop within a Loop)
    By wpeacock in forum VBA/COM Interop
    Replies: 2
    Last Post: 2005-06-14, 04:24 AM

Posting Permissions

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