|
-
Apr 24th, 2002, 10:32 AM
#1
Thread Starter
Frenzied Member
VBScript Boolean Evaluation
Am I correct in that you can not do the following in VBScript?
I'm not 100% sure that you can do that in Perl, but I don't see why not. I used it as an example because VBScript doesn't have a seperate logic operator.
I could do this in VBScript...
Code:
Dim myFoo
If 1 = 0 Then
myFoo = True
Else
myFoo = False
End If
But that is so annoying, relatively speaking. I just wanted to make sure there wasn't some sort of inline evaluation that I wasn't aware of.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
-
Apr 24th, 2002, 10:43 AM
#2
This should work:
VB Code:
Dim myFoo
myFoo = (1 = 0)
-
Apr 24th, 2002, 10:47 AM
#3
Thread Starter
Frenzied Member
Ah, thank you, it does. Now I'm glad I asked.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|