Exploding Garrmondo Weiner Interactive Swiss Army Penis

Exploding Garrmondo Weiner Interactive Swiss Army Penis (http://www.gamingforce.org/forums/index.php)
-   Help Desk (http://www.gamingforce.org/forums/forumdisplay.php?f=36)
-   -   anyone good at SCHEME? (http://www.gamingforce.org/forums/showthread.php?t=12515)

rocketdog Sep 21, 2006 01:58 PM

anyone good at SCHEME?
 
So I wrote this code:
Code:

(define (contain-touch x1 y1 w1 h1 x2 y2 w2 h2)
;first statement
  (if(= y1 y2)
    (if(> w1 w2)
        (if(> h1 h2)
          4
        )
      )
  )
;second statement
  (if(= y1 y2)
    (if(< w1 w2)
        (if(< h1 h2)
          4
        )
      )
  )
)

in Dr.Scheme. My problem is that when I run it, it seems to complete skip the first if statement and just run the code in the second. Any idea why it doesn't bother executing ALL the code?


All times are GMT -5. The time now is 06:57 AM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2026, vBulletin Solutions, Inc.