How to princ boole

Discussion in 'AutoCAD' started by Adesu, Jan 26, 2005.

  1. Adesu

    Adesu Guest

    (setq arg 0)
    (setq int1 0)
    (setq int2 0)
    (repeat 15
    (setq bl (boole arg int1 int2))
    (setq arg (1+ arg))
    (setq int1 (1+ int1))
    (setq int2 (1+ int2))
    )
    (princ "\n")
    (princ bl)

    I mean and would to print
    (boole 0 0 0) >>>result ???
    (boole 1 1 1) >>>result ???
    etc...
     
    Adesu, Jan 26, 2005
    #1
  2. Adesu

    James Allen Guest

    I think (itoa) is what you're looking for, as in (princ (itoa b1)).
     
    James Allen, Jan 26, 2005
    #2
  3. Adesu

    Joe Burke Guest

    Hi Ade,

    I'm not sure what you mean, but maybe like this.

    (defun c:test (/ arg int1 int2 bl)
    (setq arg 0)
    (setq int1 0)
    (setq int2 0)
    (repeat 15
    (setq bl (boole arg int1 int2))
    (print bl)
    (setq arg (1+ arg))
    (setq int1 (1+ int1))
    (setq int2 (1+ int2))
    )
    (princ)
    )

    Joe Burke
     
    Joe Burke, Jan 26, 2005
    #3
  4. Adesu

    Adesu Guest

    Hi Joe,that right,it is I am looking for,thanks a lot
     
    Adesu, Jan 27, 2005
    #4
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.