LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

if/else statement in MathScript Node

Solved!
Go to solution

I want to write if/else statement in MathScript Node. 

 

if (yes == yes)

{

a = 0;

}

else (no = no)

{

b = 1;

}

 

"Yes" and "No" --> Type String

"a" and "b" --> Type Double

 

0 Kudos
Message 1 of 2
(9,188 Views)
Solution
Accepted by johndoe8815

Hi johndoe,

 

Thanks for contacting National Instruments.

 

I would like to point out a number of articles which you may find helpful for setting up an if-else statement in a MathScript Node.  The first is a white paper tutorial, the second part of which explains how to use MathScript Nodes in LabVIEW. The second is an article describing the required syntax for writing functions and scripts within the MathScript Node, including instructions for the use of If-Else Statements.

 

I hope these help. Please let me know if you require any further assistance.

 

Kind regards,

James

0 Kudos
Message 2 of 2
(9,169 Views)