That last line in the discussion about (T? If my first condition is false, anything following (T will execute. It took me forever to get it to work. I need to pay attention to parenthesis use. I was missing the double paren at ((setq after (cond
Thanks for the help from 2008 CAB and Lee. Good stuff..
Title: Re: edited: Swap Block routine using ((cond (T...success
Post by: Lee Mac on August 17, 2019, 03:54:46 PM
Note that the use of T in the final cond condition is not strictly necessary and is only typically included to provide a default branch should the test expressions for all other conditions fail to be validated.
For your particular example, I would suggest excluding the T from your second condition since if the second ssget expression returns nil, the second condition will continue to be evaluated and the subsequent sslength expression will return an error.
Instead, I would suggest something like the following: