LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
gnilsson

while loop stop on default

Status: New

while loop can stop/continue on Boolean or Error, why not also on default value.

 

gnilsson_1-1613944658719.png

Could be

gnilsson_2-1613944794749.png

 

4 Comments
AristosQueue
Proven Zealot

Personally, that would be a bridge too far for me... it's just too much implied magic and easy to read over, in my opinion. So as a LabVIEW user, I would not advocate for this change. But I will leave the idea open to see what other users have to say.

Intaris
Proven Zealot

That's bordering on code obfuscation.

 

Add in dynamic dispatch methods into the chain producing the data and the default is actually not even known at compile time.

AristosQueue
Proven Zealot

Related to this, I am an advocate for adding a method to a LV class that is language-defined to be "call this to do conversion to bool", and that would allow that specific class to be wired to the While Loop terminal. But that would be a well-defined thing on a specific type that is intended for the purpose, not a general language shift.

Intaris
Proven Zealot

That certainly sounds itneresting AQ.