Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

Array/Advanced Output in Expressions

Post requests for new features to this forum group. Any suggestion to expand the possibilities of Ventuz are welcome.

Moderator: Support

Post Reply
User avatar
Eric_RD
Posts: 103
Joined: 04 Jun 2014, 14:01
Contact:

Array/Advanced Output in Expressions

Post by Eric_RD » 08 Jun 2017, 15:24

With the new "multiline-expressions-feature" in Ventuz 5 i often replace simple c# scripts with an expression
I also love the Linq integration in expressions.
linq expressions often output IEnumerables which you can cast to Arrays.
Unfortunately an expression cannot output any advanced Types like Arrays, so I always use String.Join and a string Splitter or Array Indexer behind the expression.
But this is a bit cheesy and might be unsafe, because you have to catch wrong splits.
It would be perfect if you have a generic expression Node where you can select input and output with the same types. Maybe even "object" type like c# scripts.

Grüße, Eric

Post Reply