Using the switch node to filter is a good idea but it will not work with the configuration shown. The reason is that NaN is a special number value.
Better using the output 2 for a config like below.
Try
Using the switch node to filter is a good idea but it will not work with the configuration shown. The reason is that NaN is a special number value.
Better using the output 2 for a config like below.
Try