I am using trees to build geometries. I need the output of each geometry to follow a format {0}, {1}, {2}, bearing in mind that {2} and {3} may be empty. The problem I have is that often some geometries end up in a {0.0} format instead of {0}. This happens when branches {1} and {2} are empty. It happens after a move component.
I can use trim tree to fix this and shift {0.0} to {0}, but I have to create a long suite of components to make sure that the depth of the trim tree component becomes 0 when trim tree is not required. This suite of components is: Param Viewer > Depath > Branch > Length > (x-1). This suite of components will return either 0 if the path is already {0}, or 1 if the path is {0.0}. See below:
I would like to find a way to simplify this suite of components, because I need to use it quite often. Maybe a C#? Maybe using masks? Maybe an expression? I am not too sure.