LB Booster
Programming >> Liberty BASIC language >> LBB syntax error
http://lbb.conforums.com/index.cgi?board=lblang&action=display&num=1498809397

LBB syntax error
Post by milfredo on Jun 30th, 2017, 07:56am

I tried running an LB program that I have written that works in LB. But when I tried to run it in LBB I get a Syntax error. Here is the code...Can someone tell me what is wrong?

If (bigfig > (bigfig1 - 1) And bigfig > (bigfig2 - 1)) Or (bigfig > 99) Or (bigfig1 > 99) Or (bigfig2 > 99)) Then fig = fig + 4 'add points based on speed fig

Thanks,
Milfredo
Re: LBB syntax error
Post by tsh73 on Jun 30th, 2017, 08:06am

Hello Milfredo

You have extra ")" before THEN
Load in any text editor with parenthesis matching and see.
Re: LBB syntax error
Post by Richard Russell on Jun 30th, 2017, 09:02am

on Jun 30th, 2017, 08:06am, tsh73 wrote:
You have extra ")" before THEN

For reference, 'FreeForm' has several examples of this error which means it won't compile in LBB until they are corrected.

Richard.

Re: LBB syntax error
Post by milfredo on Jun 30th, 2017, 8:23pm

Thank you.

Milfredo smiley