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

otherwise (MathScript RT Module Keyword)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: programming

Requires: MathScript RT Module

Syntax

otherwise

Description

Specifies a default case in a switch statement. The principal calling structure of a switch statement is:
switch expression
case expression
statement, ... , statement
...
otherwise
statement, ... , statement
end
The otherwise case is optional.

Examples

Examples

color = 'green';
switch color
case 'green'
disp('color is green');
case 'red'
disp('color is red');
otherwise
disp('color is neither green nor red')
end

Related Topics

case
switch


 

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