Dayananda Posted 3 hours ago Posted 3 hours ago (- botLength 6000) If this value is a minus value , I need to set it zero. Please help Quote
dexus Posted 1 hour ago Posted 1 hour ago You mean like this? (if (minusp botLength) 0 (- botLength 6000)) 1 1 Quote
Saxlle Posted 1 hour ago Posted 1 hour ago (if (= (minusp botLength) T) ;; verifies that a number is negative (setq botLength 0) ;; if it is, it will set to 0 (setq botLength (- botLength 6000)) ;; if it isn't, it will be substracted with "6000" ) 1 Quote
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.