Hi, is there a command among the current VL nodes that acts as the Split (String) function would do in Csharp? I was trying to find a decent combination of nodes to do it with but I lost patience and came here.
If it isn’t posssible yet, please make it so,it’d be super useful for me to sift through large data sets. I also noticed a lack of RegEx which think people could come in handy at a later stage.
I gave it a try, which I guess is the point, right?
I think I’m still working in a 45 style, so I fell back upon ‘I’ and ‘Getspread’ nodes. The logic took me a while to figure out, but ‘if’ is a lot more flexible than switch.
With no strings connected the node throws an error but I could probably setup an ‘IsEmpty’ condition to prevent that.
While I was patching in VL my keyboard controls would stop working (undo, delete, align etc) and I would have to restart vvvv45 to get the useability back. I don’t know what the trigger was yet but I’ll see what happens as I play around.
it is theoretically in the library since we have imported it already, but we are hiding all nodes which have something to do with arrays. and since the string.Split() returns an array of strings, it is not visible in the node list. so as soon we have proper array support it will automatically be there.
now. please check again with latest alpha. there are now multiple split nodes the “Split (String)” of which should be the default one to use. it returns a spread of strings separated by a single given string.