NIPO ODIN Version 5.17Self-Modifying Script No Longer SupportedSelf-modifying script is script that is able to change itself at runtime. In NIPO ODIN this was done by placing script commands and categories in text variables, and then displaying the content of that script variable on a particular line in the script. Such constructions were possible due to the nature of the 4.08 interpreter. With version 5 a parser is introduced that compiles the script, requiring a strict syntax and making self-modifying script impossible. Below are a few popular examples of self-modifying script, and alternatives that can be used to obtain the same result in NIPO ODIN Script language version 5 and above. Example 1: Inserting pictures *TEXTVARS FIGURE Since the Example 1: Inserting pictures in NIPO ODIN 5 *VAR NR Example 2: Toggling the filter *TEXTVARS Condition This kind of construction can be avoided all together by creating a better filter condition. Example 3: Showing and hiding codes *TEXTVARS DONTKNOW This kind of construction makes it impossible to determine code lists on exports, and can be avoided with Example 3: Showing and hiding codes in NIPO ODIN 5 *QUESTION 4 *CODES L1 *DUMMY If more than one code needs to be toggled, a Example 4: Variable scale length *VARS ScaleLen Variable scale length are no longer permitted, but strongly recommended against from a methodological point of view. If different scale lengths are required, use separate questions. |
|||
|