Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Logo > Re: need help w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 9 Topic 1544 of 1596
Post > Topic >>

Re: need help with numberp and memberp

by winston19842005 <bjjlyates@[EMAIL PROTECTED] > Jan 31, 2008 at 09:17 PM

On 1/31/08 9:06 PM, in article
5bb68cf3-d6cf-43d7-a368-9fc98537a21f@[EMAIL PROTECTED]
"davidciccarello@[EMAIL PROTECTED]
" <davidciccarello@[EMAIL PROTECTED]
> wrote:

> ok sorry for before
> numberp :v iffalse [messagebox [error] [you need to use number(s) are
> your first digits]]
> that line now works i forgot the test which i thank for alot :)
> and now the other line isnt working nor with the (1 > :v) ...

Modify the lines in your program like this:

numberp AND (1 > :v) (:v > 13) iftrue [messagebox [error] [your first 2
inputs must be numbers between 1 and 13]]
iftrue AND (:t AND (2>:x) (:x>3)) [[messagebox [error [you must input 2 or
3
alphanumaric digits]] stop]
assuming :t is a "boolean" true/false.

Or at least something like it. The 2nd like you still had a "range" that
Logo doesn't understand. Both numberp and iftrue test one expression for
true, and you need the AND predicate to put the tests together.
 




 9 Posts in Topic:
need help with numberp and memberp
davidciccarello@[EMAIL PR  2008-01-31 17:29:27 
Re: need help with numberp and memberp
Andreas Micheler <Andr  2008-02-01 02:46:37 
Re: need help with numberp and memberp
davidciccarello@[EMAIL PR  2008-01-31 17:59:03 
Re: need help with numberp and memberp
winston19842005 <bjjly  2008-01-31 21:04:05 
Re: need help with numberp and memberp
davidciccarello@[EMAIL PR  2008-01-31 18:03:44 
Re: need help with numberp and memberp
davidciccarello@[EMAIL PR  2008-01-31 18:06:39 
Re: need help with numberp and memberp
winston19842005 <bjjly  2008-01-31 21:17:14 
Re: need help with numberp and memberp
davidciccarello@[EMAIL PR  2008-01-31 18:25:22 
Re: need help with numberp and memberp
bh@[EMAIL PROTECTED] (Br  2008-02-01 07:05:59 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 20 0:10:34 CDT 2008.