Page 1 of 1

Is it bug?

Posted: Mon Dec 06, 2010 7:18 pm
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.

Re: Is it bug?

Posted: Mon Dec 06, 2010 7:45 pm
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)

Re: Is it bug?

Posted: Mon Dec 06, 2010 10:04 pm
by c4s
:shock: exactly the same was asked a few hours ago: http://www.purebasic.fr/english/viewtop ... =4&t=44520

Re: Is it bug?

Posted: Mon Dec 06, 2010 10:12 pm
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:

Re: Is it bug?

Posted: Tue Dec 07, 2010 11:08 am
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 :)