[Done] Syntax error, when using floats and binary operator separated with and/or

All bugs related to new C backend
User avatar
STARGÅTE
Addict
Addict
Posts: 1655
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

[Done] Syntax error, when using floats and binary operator separated with and/or

Post by STARGÅTE »

In the c-backend, I can't combine float and binary operators inside an and- or or-statement, even not with brackets.

Code: Select all

#Flag = %01

Define Float.f = 0.5
Define Flags.i = 0

If Float < 1.0 And Flags & #Flag

EndIf

If Float < 1.0 And (Flags & #Flag)

EndIf

If Float < 1.0 Or Flags & #Flag

EndIf
PB 5.73 ― Win 10, 20H2 ― Ryzen 9 3900X ― Radeon RX 5600 XT ITX ― Vivaldi 4.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Fred
Administrator
Administrator
Posts: 14422
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Syntax error, when using floats and binary operator separated with and/or

Post by Fred »

Fixed.
Post Reply