Fail to use bool to extract String

Greeting. I meet a problem as below:

image

I wonder why it did not come out my expectation while there is no error warning. Hope you can help me.

The if node will always use shortest lacing unless you have the newer version which exposes the lacing controls. One item in the true list, no items in the second list, therefore the most you will get is no items. Can be frustrating at first.

Instead you can use a code block like this:

indx = test ? 0 : 1;
returnedValue = [trueVals, falseVals][indx];
1 Like

Thanks for your help!

1 Like