newbee question

Discussion in 'AutoCAD' started by G, Oct 1, 2005.

  1. G

    G Guest

    what does the * do in this routine?
    (if (not *last_num*)(setq *last_num* 1))
     
    G, Oct 1, 2005
    #1
  2. G

    mguzik Guest

    It is coding convention to identify these as global variables. Could
    have just as easily have been (setq glob_last_num last_num).

    Nothing special, just a way to identify type of variable when reading
    code.

    After running the above line once, you can assess to value of
    *last_num* by typing !*last_num*. Often used to return the previous
    value last set when the routine was run in the current session.

    MJG
     
    mguzik, Oct 4, 2005
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.