If... Then... Statements

Author Message
alleypuppy

  • Total Posts : 6
  • Scores: 0
  • Reward points : 0
  • Joined: 1/14/2011
  • Status: offline
If... Then... Statements Monday, February 07, 2011 5:34 PM (permalink)
0
I'm new to VBScript so bear with me...
 
Is there a way I can write if... then... statements and after saving the script as a .vbs file and not having to use the infobox to type in the words? For example:
 
Do
a=inputbox ("Example")
if a = "z" then
msgbox ("Z is the last letter of the alphabet.")
End if
Loop until a = "exit"
 
I want to make it so instead of typing "z" into the inputbox to make "Z is the last letter of the alphabet." pop up in a separate messagebox, I can just type "z" into a notepad window, hit enter, and the resulting "Z is the last letter of the alphabet." statement will pop up in the same window. Is this possible? Sorry if this is kind of hard to understand. I greatly appreciate any feedback.
 
#1

    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9