Page 1 of 1

Array/Advanced Output in Expressions

Posted: 08 Jun 2017, 15:24
by Eric_RD
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