LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in "if-else" statement, formula node

Solved!
Go to solution

This is my first time posting to these forums, so forgive me if I'm posting this in the wrong spot.

 

I'm using this if-else statement in a formula node:

 

if(fa*fc<0);
B = c;
else
A=c;

 

The error list returns Formula Node: Error in statement

Error on line 10 is marked by a '#' character: "...a*fc<0); B = c; else# A=c;"

 

I can't figure out what the error is.

Any thoughts/suggestions? I'm using 17.0

Thanks

0 Kudos
Message 1 of 3
(2,907 Views)
Solution
Accepted by topic author jmills94

Hey,

 

Have you tried to remove the semicolon (";") after the if statement ?

CLAMaxime -- Kudos are a great way to say thank you
Message 2 of 3
(2,877 Views)

*facepalm* that did it. 

 

Thank you!

0 Kudos
Message 3 of 3
(2,865 Views)