Using script function in a non-conditional expression breaks script compilation
begin test onactivate end test
error line 3, column 5 (onactivate) Unexpected keyword compiling failed: test
begin test if onactivate ; do something endif end test
Vanilla MW accepts both scripts.
There ought to be a way to process the side effects of the "OnActivate" function while ignoring its return value.
(RM-3725 from redmine: created on 2017-01-13 by scrawl ., )