Tiger 发表于 2022-7-6 10:07:05

singular = 1
Plural = every number but 1perhaps?

dbroada 发表于 2022-7-6 10:10:37

I'm glad I'm not the only one who reads it that way.

pBe 发表于 2022-7-6 10:15:01

 
 

(defun c:test ()(setq num (getint "\n Number: "))(if (= (rem num 2) 1)(princ "\nYou Entered Odd number:")(princ "\nYou Entered Even number:") )(princ))
 
??????????
 

(defun c:test ()(setq num (getint "\n Number: "))(if (> num 1)(princ "\nYou Entered a higher number than 1")(princ "\nYou Entered Number 1") )(princ))
 
??????????
 

(defun c:test ()(setq num (getint "\n Number: "))(if (< num 9)(princ "\nYou Entered Singular")(princ "\nYou Entered Plural") )(princ))
 
???????????
 
Enough!! Enough!!!

Michaels 发表于 2022-7-6 10:15:34

Fantastic pBe .
 
That's it . Appreciated a lot buddy.

pBe 发表于 2022-7-6 10:19:48

 
for which one?
 

Michaels 发表于 2022-7-6 10:23:38

 
All of them are perfect buddy .

dbroada 发表于 2022-7-6 10:24:58

and we are none the wiser to what a plural number is

Michaels 发表于 2022-7-6 10:29:15

 
I am sorry , I should have written "even" instead of "plural" which made the confusion .
 
I appologize .

Lee Mac 发表于 2022-7-6 10:31:31

Perhaps see this thread:
 
http://www.cadtutor.net/forum/showthread.php?58679-how-CAD-knows-a-number-is-singular-or-plural

pBe 发表于 2022-7-6 10:36:51

 
No worries.. we had fun
页: 1 [2]
查看完整版本: Check number in a list (singul