Example Code

If IfElse and Switch Statements

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

Attached is an example VI with the three structures discussed on LabVIEW Equivalent of If, If-Else, and Switch Statements - NI: an if statement with a Selector function, an if-else statement with a Case Structure, and an if-else or switch statement with a Case Structure. 

Related Links

LabVIEW Equivalent of If, If-Else, and Switch Statements - NI

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.