Error, improper op or subscript selector
|
Description
|
|
This error occurs when the op command is used to extract an operand that does not exist.
The index must be an integer and must refer to an operand that exists in the expression.
|
|
Examples
|
|
Example 1
In this example, using the op command to extract the 15th operand results in an error.
>
|
|
| (2.1) |
>
|
|
Solution:
Using the nops command, you see that there are only 14 operands.
>
|
|
| (2.2) |
To access the last element, use the following command:
>
|
|
| (2.3) |
Example 2
Again, calling the op command to extract an operand outside the bounds of the list results in an error.
>
|
|
| (2.4) |
>
|
|
Solution:
Modify the arguments to the op command to extract an element within the list. Use the nops command to determine the number of operands.
|
|
Download Help Document
Was this information helpful?