• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
If Statements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

If Statements


  • Subject: If Statements
  • From: William J Sisti <email@hidden>
  • Date: Thu, 11 Sep 2008 08:14:02 -0400
  • Thread-topic: If Statements

Title: If Statements
I have a If statement that checks users user name.  Teachers use first initial and last name and students go by a number.  So right now my Else if looks like this:

If (username > 1 and username <10)
    do this
Else if (username > 11 and username < 20)
    do this other thing
Else
    do this third thing

End it


The problem is that the script doesn’t like trying to figure out if wsisti is between 1 and 10 or 11 and 20.  “Can’t make kbasovsky into type number, date or text”.

My alternative is to add a another question to ask if they are a student or teacher and handle it that way, but I would rather not.

Thanks in advanced.

-Will
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: If Statements
      • From: Ed Stockly <email@hidden>
    • Re: If Statements
      • From: Michelle Steiner <email@hidden>
    • Re: If Statements
      • From: Matthew Smith <email@hidden>
  • Prev by Date: Re: set optionKeyDown to...
  • Next by Date: Re: If Statements
  • Previous by thread: Re: Delete file type
  • Next by thread: Re: If Statements
  • Index(es):
    • Date
    • Thread