Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Performing Switch Statements in Formula Nodes

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

The switch statement uses the same syntax as the switch statement in C. For example, you might have a statement like:

switch(month){

case 2: days = evenyear? 29: 28; break;

case 4:case 6:case9: days = 30; break;

default: days = 31; break;

}

Refer to the Switch Statement VI in the labview\examples\math\formula_node.llb for an example of using a switch statement in a Formula Node.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit