If Statements have been discussed on various time here. However in digging through those I didn’t seam to find this particular issue.
What I want is to test for a true of false condition. Then based on that either get the complete list or a portion of the list. In the attached image, I am showing taking the “First” or “Complete” list.
For some reason, when different length list are input into the IF statement it will always return a list of a standard length.
I would expect the input to be just past through. This has been attempted with both the If node and the formula node as shown.
Would creating a Python or Func provide a different output and use of the “if” statement?
There was another discussion on “ScopeiI” (I apologize for not having the link currently) that references not to use “ScopeIf” in the work space, it is only intended for use in “Custom Nodes” While I do not understand the why. I can confirm when attempting any use of it, nodes became null, many instabilities, and some very odd situations. Once I removed it from the work space, it began to work again.
IF replicates on all nodes AS THOUGH SET TO SHORTEST. You can see the reason for this in the attached examples, especially when looking at what the results are when LONGEST is applied to a formula node and the “short” branch of the conditional is passes through. These changes were also made to allow predictable behavior when using single boolean inputs or a list of booleans.