Similar Matlab Function block?

Hi!

Thank you for your answer.

I tried to use C-Script but for some things is quite difficult… maybe because I don’t know very well C! :slight_smile:

I’ll take a look at State Machine block… I didn’t know it existed!

Regards.