Is it bug?

Just starting out? Need help? Post your questions and find answers here.
VeryVeryWell
User
User
Posts: 35
Joined: Sat Jun 19, 2010 1:41 pm

Is it bug?

Post by VeryVeryWell »

Hello!

source code:

l=100
Debug (l>192)
Debug (100>192)

Result:

192

Is it a bug?

How it can be used in expressions?

For example:

a=a+(b>100)*30

This expression doesn't work.
PureLust
Enthusiast
Enthusiast
Posts: 486
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: Is it bug?

Post by PureLust »

It's not a bug - it's an unsupported expression.

Search for "boolean expression" to get more infos about this.

A workaround:

Code: Select all

Macro Is(boolean)
  (#False Or (boolean))
EndMacro

l=100
Debug Is(l > 192)
Debug Is(100 > 192)
Debug Is(220 > 170)
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Is it bug?

Post by c4s »

:shock: exactly the same was asked a few hours ago: http://www.purebasic.fr/english/viewtop ... =4&t=44520
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
PureLust
Enthusiast
Enthusiast
Posts: 486
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

Re: Is it bug?

Post by PureLust »

c4s wrote::shock: exactly the same was asked a few hours ago: http://www.purebasic.fr/english/viewtop ... =4&t=44520
He doesn't seems to remember Verry Verry Well about his own questions than. :wink:
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)
VeryVeryWell
User
User
Posts: 35
Joined: Sat Jun 19, 2010 1:41 pm

Re: Is it bug?

Post by VeryVeryWell »

PureLust wrote:
c4s wrote::shock: exactly the same was asked a few hours ago: http://www.purebasic.fr/english/viewtop ... =4&t=44520
He doesn't seems to remember Verry Verry Well about his own questions than. :wink:
It is question of my friend :D
He asked me - I asked you and he asked you too :D :D
perfect.... thanks :)
Post Reply