Results 1 to 10 of 18

Thread: True or false? It's confusing..

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Rotterdam, Holland
    Posts
    1,995

    Default True or false? It's confusing..

    This is a bit confusing...

    Click image for larger version. 

Name:	TrueOrFalse.png 
Views:	119 
Size:	3.2 KB 
ID:	14188

    I stumbled upon this because of this type of expression.
    Note: This is an example. In the original code I accidentally used a boolean instead of an integer, but even so, one would expect the expression to be true:

    Code:
    Boolean iCertainBoolean // Should have been an integer
    Move 1 to iCertainBoolean
    If (iCertainBoolean <> -1) Begin
    ...
    The expression turned out to be false...

    Am I missing something here?
    Last edited by Pieter van Dieren; 22-Dec-2020 at 09:01 AM.
    Regards,

    Pieter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •