LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When if statement is used in LabVIEW, can I add more than one statement.

Ex: If (t<=2) (Amp=2*t Len=t*0.1); Is this correct? Or do I have to use If (t<=2) (Amp=2*t);
0 Kudos
Message 1 of 2
(2,468 Views)
When if statement is used in LabVIEW, You can add more than one statement. For that, use following syntax
If(t<=2) {Amp=2*t;Len=t*0.1}

Thus, sentences have to be in closed parenthesis & separated by semicolons.
Message 2 of 2
(2,468 Views)