Current time: 05-20-2012, 04:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ternary Operators in VBScript
08-01-2009, 01:26 PM
Post: #1
Ternary Operators in VBScript

I use the ? an : operators when writing PHP. Are there similar operators available in VBScript? - Bill S.

Let me first give a basic introduction for those readers who don’t know PHP and may not understand what we’re talking about here. PHP allows you to make quick decisions using the ? and : operators. These logical operators are known as Ternary Operators and allow you to take a shortcut approach to a simple conditional block. A ternary operation returns the result of an expression. Therefore, it is most commonly used for a variable assignment. In php, the syntax looks like this: (more…)





Posted on Thu, 17 Jan 2008 14:54:26 +0000 at http://www.nilpo.com/2008/01/windows-scr...-vbscript/
Comments: http://www.nilpo.com/2008/01/windows-scr.../#comments
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Luhn Algorithm Validation in VBScript (ASP) Nilpo 1 2,629 10-09-2010 02:31 AM
Last Post: Maykel
  Restoring .vbs (VBScript Script File) File Associations Nilpo 0 2,677 08-01-2009 01:26 PM
Last Post: Nilpo
  Controlling When VBScript Events Are Handled Nilpo 0 735 08-01-2009 01:26 PM
Last Post: Nilpo

Forum Jump:


Forum Permissions
You cannot post new threads.
You cannot post replies.
You cannot post attachments.
HTML is turned on.
MyCode is turned on.
Smilies are turned off.
[img] is turned on.