Message 1 of 5
Checking DCL Input isBlank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing to request your assistance with a problem I am encountering with my AutoLisp code. Specifically, I am trying to create a function that will check whether the input of a dcl is blank. If the input is blank, I would like the function to execute one command, and if the input is not blank, I would like the function to execute another command.
I have tried using the following code, but it has not been successful:
(setq result (get_tile rcdName))
(if (or (null result) (equal result ""))
(progn
(c:wd_wire rcdWirePointStart rcdWirePointEnd "")
)
(progn
(command .....)
)
)
Could you please advise me on how I can modify this code to achieve the desired functionality? I would greatly appreciate your assistance.
Thank you for your time and attention.