All Forums >> [Scripting] >> Post a VBScript >> Inline If Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
If you've used VB.Net you've heard of this Function. Here's a dirty implementation for VBScript:
Example Use:
Lets say I want an array that contains the days of the month for all the months for an entire year. I would obviously need to know if its a leap year or not, so I could write it something like this: