04-14-2015 10:02 AM
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
Solved! Go to Solution.
04-15-2015 05:19 AM
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