From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

unexpected token

Solved!
Go to solution

Hi

 

In my mathscript code:

 

if((B=1)&(BB=1)&(BBB=1))
BBBB=1;

elseif((C=1)&(CC=1)&(CCC=1))
CCCC=1

elseif((D=1)&(DD=1)&(DDD=1))
DDDD=1;

elseif((E=1)&(EE=1)&(EEE=1))
EEEE=1;

elseif((F=1)&(FF=1)&(FFF=1))
FFFF=1;

elseif((G=1)&(GG=1)&(GGG=1))
GGGG=1;

elseif((H=1)&(HH=1)&(HHH=1))
HHHH=1;

elseif((I=1)&(II=1)&(III=1))
IIII=1;

elseif((J=1)&(JJ=1)&(JJJ=1))
JJJJ=1;

elseif((K=1)&(KK=1)&(KKK=1))
KKKK=1;

end;

 

I get the error message unexpectd token B, anyone has any suggestions.

 

thanks chris

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

Hello Chris,

 

Changing B=1 to B==1 should solve your issue.

Untitled.png

Andy Chang
National Instruments
LabVIEW Control Design and Simulation
Message 2 of 3
(2,287 Views)

thanks andy, your help is much appreciated. Saved me a lot of time.

 

chris

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