- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a lisp that extracts values from a csv, writes them to variables and updates existing blocks, which it is thankfully doing. The problem is that it is supposed to skip sub-functions when it encounters blank entries in the csv, but it won't recognize the nil-value variables. I've had it pause and princ the value and type of the variable, which is set to a nil string.
I've tried
(if (eq RES_1_ADDRv nil)
(if (not (eq RES_1_ADDRv nil))
(if (/= RES_1_ADDRv nil)
(if (null RES_1_ADDRv)
(if (not (null RES_1_ADDRv)),
flipping the order of the subsequent then/else as appropriate. Is there an = or /= equivalent function specific to strings that I should be using?
(RES_1_ADDRv is global variable)
Thanks,
Gorra
Solved! Go to Solution.