mbrandt5 Posted August 7, 2015 Share Posted August 7, 2015 How do I make ...code... perform if X = p Like this but with it working... (If X (p)) (...code...) ) Quote Link to comment Share on other sites More sharing options...
Tharwat Posted August 7, 2015 Share Posted August 7, 2015 What are the values of x and p ? Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 7, 2015 Share Posted August 7, 2015 (if (= x p) ... ) Quote Link to comment Share on other sites More sharing options...
Tharwat Posted August 7, 2015 Share Posted August 7, 2015 (if (equal x p 1e-4) (.....) ) Quote Link to comment Share on other sites More sharing options...
mbrandt5 Posted August 7, 2015 Author Share Posted August 7, 2015 oh yeah I forgot lisp lists those first thank you Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 8, 2015 Share Posted August 8, 2015 A bit more (if (= x p)) (do line 1) (else do line 2) ) (if (= x p)) (progn (do line 1) (do line 1a) (do line 1b) ) (else do line 2) ) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.