script parameter

Hello,

Is it possible to pass a parameter to a script when loading it?

Examples of intended usage:

q)\l double.q 3

q)6

q)\l double.q 5

q)10

C:\q> q double.q 2

C:\q>4

C:\q> q double.q 6

C:\q>12

Thanks

Francisco

You can use .z.x to get the arguments that were passed.

q test.q a b c

q).z.x

,“a”

,“b”

,“c”

Thanks a lot…