Only channels can be indexed by frame, e.g.:
This does not work:
my_variable = time * 2 + 100;
a = my_variable[ frame - 1 ];
To add a custom variable that then will be indexable by frame, refer to "adding custom channels" in the documentation.
Xpressionist.my_variable = time * 2 + 100;
a = Xpressionist.my_variable[ frame - 1 ];