My revision but no subroutine. See how the cond is used to end the routine if any failures occur.
Still needs an error handler though.
THIS IS THE WAY I UNDERSTAND THE CODE
=================================
"COND" has 3 tests & 3 expressions to execute:
Test
((not
(and .....
.....
)
)
On failure execute expression
(Prompt "\n... Unable to open file)
"AND"
Should return T when all arguments are true
===========================
"NOT"
make sure I don't have NIL here? But am I checking whether a file is selected or am I checking if any of the variables within that expression have something in them ? I am finding the "NOT" function confusing.
Working backwards....
AND returns T, NOT returns NIL, COND executes PROMPT ??? I am thinking when it works they all return T