Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello boys how are you.
I wanted to ask you, how can I compare a numerical value with a list and know if they are the same or not.
I have two variables.
(setq val 0.0)
(setq lst '(-0.23297 -0.23297 1.0 0.05 4))
val contains the value to compare. This value can be any.
lst contains a list of values, this list can have one or more values.
I need it to return T if all the values of the variable lst are equal to the value of the variable val.
Beforehand thank you very much.
AutoCAD 2026.1.1
Visual Studio Code 1.105.1
AutoCAD AutoLISP Extension 1.6.3
Windows 10 - 22H2 (64 bits)
Solved! Go to Solution.