< Back to IRCAM Forum

Does an equivalent of lisp 'progn' fun exist in OM?

Hello,

I’m looking for an equivalent OM object to the ‘progn’ Lisp special function.
Unfortunately, the progn function can not be instanciated into OM (OM tells “Special Lisp form progn” and does nothing), eval can not have multiple input, etc.
I’d like to evaluate several independant OM eval chains (or not linked outputs), the one after the other (from left to right or right to left) when evaluting only one time a single object. This could be done by using a single object with its inputs connected to the output of different objects.
How to do in OM without developping a new OM object using Lisp ?

Bests.

Dear Fred,

Progn is not a function, it’s a special form (a macro) and as you noticed not available in Visual programing. Instead you can use the sequence function which approaches progScreenshot_2020-10-16_16-09-23 .

Best
K

Thank you Karim, it’s what I was looking for.
Sorry to have not get a look it into the ‘Functions > Kernel > Control’ menu but into ‘Classes > Kernel > Interfaces’ one :wink: