ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with error in Mathscript Error

16rasmuaut_0-1586089901137.png

I am unsure why I am getting the error at "end." I am thinking maybe I have to exchange it for "endif." I am confused how this error allows "x" to remain an output but does not detect "t" as an output. I tried to learn more about MathScript formatting for help. This was my first time using it. Any critiques are welcome. 

0 Kudos
Message 1 of 2
(4,847 Views)

The problem is with your command "else if". Try to replace it with "elseif".

0 Kudos
Message 2 of 2
(4,325 Views)