I’ve been busy trying to automate the production of nodes for my Morcego installation, and find myself hung up on how to script an interative process for making similar links.
After much searching and head-scratching, I’ve found something that’s not quite an Aha! moment, but does make sense of something I’ve puzzled over.
- By using
Else If, it is possible to combine several conditions.
- Only the statements following the first condition that is found to be true will be executed.
- All other statements will be skipped.
- The statements of the final Else will be executed if none of the conditions are true.