Error: IF clause at (1) requires a scalar LOGICAL expression

This appears to be a restart of an earlier thread, under a different user-id. An even earlier one exists, quite similar to the current one.

As has been noted earlier, there is a pattern in these posts. Arbitrary changes are made to the source code in an attempt to make compilation errors go away. When that fails, a fresh post is made asking something along the lines of “what do I do to fix this?”. Such an approach is misguided and a waste of everyone’s time.

A computer program is an expression of ideas. For it to succeed, the ideas must be clear and based on a logical framework. The programmer has to be conversant, if not fluent, in the programming language chosen, willing to engage in well-reasoned discourse, and willing to read the appropriate language guides and reference manuals.

4 Likes