Results 1 to 3 of 3

Thread: VBScript Boolean Evaluation

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    VBScript Boolean Evaluation

    Am I correct in that you can not do the following in VBScript?

    Code:
    my $foo = 1 == 0;
    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.

  2. #2
    Si_the_geek
    Guest
    This should work:
    VB Code:
    1. Dim myFoo
    2.  
    3.   myFoo = (1 = 0)

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    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
  •  



Click Here to Expand Forum to Full Width