'input' function inside 'process' function scripting error

Dear Francois,

I try scripting a custom process function that needs my input in the form of

prompt1 = 'Enter channel names: ';
str1 = input(prompt1,'s');

the process_?.m is a a collection of functions/subfunctions not accepting the above lines outside a function, and if I include them in a function, it does not execute properly/all freezes.
How should I go about it?
Thank you,

Octavian

A Brainstorm process should not have any interactive elements. All the options must be defined in the GetDescription function.
If you want to allow the selection of one electrode only, you can use the option type "channelname". For a list of channels, you need to use the option type "text". There are plenty of existing processes using one or the other, look for existing examples.

https://neuroimage.usc.edu/brainstorm/Tutorials/TutUserProcess

Thank you, figured it out. Octavian