Can I call an include by variable?
So instead of the ususal:
{someidr/myinclude.i}
This:
my-program = "somedir/" + someval + ".i".
{&my-program) <-- this is the part I am not sure of
No.
Includes are resolved at compile time, so you /can/ use preprocessor values to determine which include to include.
Variables are resolved at run time.