IF Statements, ElseIF and Else (Decision Structures) - VB.Net Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • This video will discuss how to properly implement a decision structure using an If statement in VB.Net. I will discuss the implications of setting up your IF incorrectly and explain exactly what is essential and what is not.

ความคิดเห็น • 29

  • @eloisamarietulay5331
    @eloisamarietulay5331 3 ปีที่แล้ว +4

    I really am in awe of how you teach all of these under 8 minutes in a very concise manner! Every university DESERVES a stellar teacher like you. Thank you so much for this video!

  • @oscarlemus102
    @oscarlemus102 3 ปีที่แล้ว +1

    Thanks man. Very succinct, and your voice made the delivery all the better.

  • @goodjobyules
    @goodjobyules 5 ปีที่แล้ว +2

    Been having trouble in my class with "conditions" , this was clear and easy to understand, thank you!

  • @KenSwartwout
    @KenSwartwout  11 ปีที่แล้ว +2

    I usually prefer an IF from a readability perspective. It is really a matter of style and personal preference. SELECT CASE is a bit shorter and starts to pay off when you have many different cases that you are looking to match. Some nice applications of SELECT CASE are when working with compound inequalities (0 < x < 10) or when you would have numerous OR clauses. I would never try to to sell anyone on one being better than the other - they are ultimately both decision structures.

  • @conquerorDProgrammer
    @conquerorDProgrammer 3 ปีที่แล้ว +1

    That was way to easy to understand thank you

  • @longnguyen614
    @longnguyen614 3 ปีที่แล้ว +1

    Character In the video It's great, I like it a lot $$

  • @chris_estacio
    @chris_estacio ปีที่แล้ว

    this is a well-explained tutorial.. .thank you!

  • @abdullahazzam1351
    @abdullahazzam1351 3 ปีที่แล้ว +1

    Thanks bro , That helped me well

  • @MarcusKiner
    @MarcusKiner 3 ปีที่แล้ว +1

    Great explanation, thank you!

  • @amer6522
    @amer6522 6 ปีที่แล้ว +1

    Thank you so much may god bless you ☺️🙌🏼🙌🏿

  • @workinprogress3927
    @workinprogress3927 6 ปีที่แล้ว +1

    This is a big help! Thank You so much!

  • @jonnyluzencinas
    @jonnyluzencinas 4 ปีที่แล้ว +1

    What will happen if you type letters? How can I exclude that to the code or program?

  • @yazidbrima4586
    @yazidbrima4586 7 ปีที่แล้ว +1

    this been a big help, thank you so much

  • @devonwemuzim
    @devonwemuzim 5 ปีที่แล้ว +1

    nice video

  • @dekiwi4484
    @dekiwi4484 4 ปีที่แล้ว +1

    8th grade and im learning it. how much more for those who are younger???

  • @cjsernaserna
    @cjsernaserna 11 ปีที่แล้ว +1

    Sweet video!

  • @batoolsamen7165
    @batoolsamen7165 6 ปีที่แล้ว +1

    really ..thank you 👍

  • @ashokjain4950
    @ashokjain4950 5 ปีที่แล้ว +2

    But please make more
    Like in vb
    Go for looping

  • @mykelroheys9635
    @mykelroheys9635 3 ปีที่แล้ว +1

    30 min before exam

  • @ashokjain4950
    @ashokjain4950 5 ปีที่แล้ว +1

    You could have do just select case system

  • @sangeetabhansali1672
    @sangeetabhansali1672 5 ปีที่แล้ว +1

    What is the Meaning of pct and CDbl in this code

    • @diyapudota
      @diyapudota 4 ปีที่แล้ว +1

      Oct is the variable he declares and CDbl is to stop any error in his variable declaration

  • @joedexterbolito8586
    @joedexterbolito8586 2 ปีที่แล้ว +1

    What is pct sir?

  • @hyphanbaosong5443
    @hyphanbaosong5443 11 ปีที่แล้ว +1

    Can you can use one Else For many If ?

    • @KenSwartwout
      @KenSwartwout  11 ปีที่แล้ว +1

      No, not directly. One Else can only belong to one If.

  • @adrishnaskar9443
    @adrishnaskar9443 7 ปีที่แล้ว +1

    Can You tell me what did the CDbl means?????

    • @yazidbrima4586
      @yazidbrima4586 7 ปีที่แล้ว +1

      it means 'double' as for datatype

  • @dukestt
    @dukestt 11 ปีที่แล้ว +1

    Talking from a programmers point of view, why would you choose SELECT CASE over an IF Statement.

  • @gunslinger887
    @gunslinger887 6 ปีที่แล้ว +1

    @Ken Swartwout, PLEASE HELP ME