Visual Basic Tutorial - 15 - Nested If Statements

Поделиться
HTML-код
  • Опубликовано: 30 окт 2024

Комментарии • 29

  • @claudinego4353
    @claudinego4353 9 лет назад +5

    I like how every video is short because the information taught became easier to digest :)

  • @noobfisherman1626
    @noobfisherman1626 4 года назад +1

    9 years later and only 95k views??? this should me in the 5 millions.. Good vid. Thanks. I wish I have the half of your subs..

  • @Blacklight6000
    @Blacklight6000 12 лет назад

    @Masteryxx the code that generates the question "Do you have insurance" is writen outside the if statment so no matter what your answer at the first question is the program will display the second one. Just in case you haven't figure it out by now.

  • @daniellarosssantos8459
    @daniellarosssantos8459 4 года назад

    Thank you for this video! It helps a lot

  • @sheldon123ize
    @sheldon123ize 12 лет назад

    Lol its different to JavaScript too most languages have there minor differences but i would like to get to know those differences will help you to understand better why they are done the way they are done... I LOVE Javascript but i HAVE to learn this to get a certificate :P but this guy makes it interesting :)

  • @HexPlays
    @HexPlays 13 лет назад +1

    i cant believe how much fun learning could be. who new lol. (coming from a 17 year old freshman haha)

  • @TYMON399
    @TYMON399 11 лет назад +4

    I have a question. Can you do If age = >16 Then?

  • @madhukamelan7014
    @madhukamelan7014 6 лет назад

    thanks sir. you solved my big problem

  • @serpent035
    @serpent035 10 лет назад

    Great video's Love them...!

  • @forgottencameras
    @forgottencameras 4 года назад

    It is throwing flags for unneeded values on both variables (= Nothing not needed); is this because of the updates done to VB since 2011 telling us it is not needed or is this just something that is no longer needed and discouraged when writing VB in these newer versions?
    Also this VB tutorial is better than the stuff on SkillShare and is better than college textbooks and the "...For Dummies/...For Idiots" books I've looked at.

  • @AhiungLim
    @AhiungLim 10 лет назад +5

    yeah, i only added ">" symbol to fix that logic.

  • @Shaiya1Noob
    @Shaiya1Noob 11 лет назад

    ty vm

  • @salomonmartinez3874
    @salomonmartinez3874 10 лет назад

    yeyeyeye thank you

  • @HikikomoriDev
    @HikikomoriDev 11 лет назад +1

    2 people got pulled over....

  • @RalphNgOfficial
    @RalphNgOfficial 11 лет назад

    good video

  • @Masteryxx
    @Masteryxx 13 лет назад

    the If statement will only work if age = 16. So why when you have age = 18 the question: "Do you have insurance" will appear ?

  • @carstorm85
    @carstorm85 13 лет назад

    @sociomaladaptivist error: line line 6. LikeThis expected no arguments but received 1

  • @TheSatyrical
    @TheSatyrical 12 лет назад

    He doesn't use "And" because what if you are 16 but don't have insurance? You wouldn't be able to say something along the lines of, "You can drive but be safe without insurance." Well, you could, but using nested if statements is much easier.

  • @MayerHonza
    @MayerHonza 12 лет назад

    why dont we use
    if Age = 16 And hasInsurance = true Than
    Console.Writeline("blahblah")
    else
    console.writeline("blahblah")
    end If
    ?

  • @TheDesius
    @TheDesius 11 лет назад

    This is the same right? If age = 16 and insurance = true then

  • @joshmason11
    @joshmason11 11 лет назад

    I would like a msgbox to appear before submiting. if they press yes then go to slide 3
    Dim intresponse As Integer
    Private Sub CommandButton1_Click()
    correct = 0
    intresponse = MsgBox("Are you sure you want to submit?", 36, " ")
    If intresponse = vbYes Then
    If TextBox1.Text = "2^6 - 63" Then
    correct = correct + 1
    q1 = "Correct"
    SlideShowWindows(1).View.GotoSlide (3)
    Else
    correct = correct + 0
    q1 = "Incorrect"
    SlideShowWindows(1).View.GotoSlide (3)
    End If
    TextBox1.Text = ""
    Please reply!

  • @LightCodeDemonH
    @LightCodeDemonH 11 лет назад +1

    ( and ) required
    = ("derp")
    Console.ExplodeViolently is not a valid expression.

  • @TheVerbalAxiom
    @TheVerbalAxiom 12 лет назад +1

    Dude always forgets the "Console.ReadLine" Lol

  • @joshmason11
    @joshmason11 11 лет назад

    My previous comment was supposed to be spaced out, sorry if it's a bit hard to read:/

  • @xXSellizeXx
    @xXSellizeXx 11 лет назад

    Programming without { and } is so weird. :(

  • @RahilWazirAli
    @RahilWazirAli 12 лет назад

    age => 18+ :)

  • @TYMON399
    @TYMON399 11 лет назад

    Ops...sry didn't watch till the end :L