Here is a
new beta containing the latest changes. I will wait for few days before releasing this version.
- Update: Chain Variables: Add option to loop over all books per var in the table.
- Update: Chain Variables: Right clicking value cell opens template editor.
- Update: Add new template function book_vars to access book specific variables set by custom actions (using chain_loop.set_book_vars). They are no longer accessible from the globals template function, to provide consistent behavior that enables set_globals to work the same everywhere.
- Fix: Formulas: Bug with mean value when fed an empty list or a list with no numerical values. It now handles it by returning 0.
The change in the bullet point no. 3 only affect people who write custom actions, and set book specific variables using chain_loop.set_book_vars. I suspect zero people are using this. But just in case, these variables are now accessed in template using the new function like this:
Code:
program:
book_vars('my_var_name')
The mean() function now returns '0' if fed an empty list. Also there are other functions beside mean() that have the same problems with empty lists, for some of them it does not make sense to return '0' e.g min() and max(). So, they will keep returning the same error for now.