Visual Basic Tutorial - 13 - If Statement

  Рет қаралды 172,640

thenewboston

thenewboston

Күн бұрын

Пікірлер: 53
@HippyGiraffe
@HippyGiraffe 11 жыл бұрын
I was just notified of a reply to a comment I posted on one of the videos in this series about a year ago: the question's answer is was very obvious for me, reading it now. At this moment, 11 months later, I'm fluent in VB.NET and C#, and know my way around Java and C++. I'm only posting this comment to tell everyone out there to don't give up! I was there less than a year ago, with no programming knowledge whatsoever - now, I code whatever I want and am planning to start software engineering in uni. KEEP GOING! You'll get there - and it's so much fun!
@donniboi3708
@donniboi3708 10 жыл бұрын
hahgay.com/
@rmz1994
@rmz1994 12 жыл бұрын
i studied other languages before this series and i gotta say I LOVE THE WAY SAM IS TEACHING US he is straight on point with what hes doing and i feel confident ima make it to the end satisfied
@G1nnix27
@G1nnix27 7 жыл бұрын
You probably don't even read these anymore, but I would just like to point out that my teacher makes 25 minute videos over these same things and I still just don't get it when he does it. Your tutorials are short and right to the point, thank you. These videos are amazing
@JDMx607
@JDMx607 12 жыл бұрын
Just would like to say thank you! I understand most of this stuff, but a few things were still new to me, and your videos, including this one, helped me.
@Prathamesh17.17
@Prathamesh17.17 2 жыл бұрын
Sir I'm reallly really going to thank you .Your video is really going save me🙇🏻‍♂️ for my practical exam.Thank you so much sir.
@HS-dl6vl
@HS-dl6vl Жыл бұрын
Love you bro! Thanks for getting me clear about the topic ❤❤❤❤
@solorzanoronald1776
@solorzanoronald1776 7 жыл бұрын
your awesome, best tutorials I have seen
@MasterMitch200
@MasterMitch200 11 жыл бұрын
I like Bucky more, but Sam is good too. The reason I like Bucky more is because I watched more tutorials with Bucky in it and Bucky makes it fun to learn, but like you said, Sam is always straight on point, so I like both of them.
@HexPlays
@HexPlays 13 жыл бұрын
@DOVARIRAMU when your coding it you can set the password to be whatever you want. the end result is that if you type it correctly youl get a conformation, and if you dont it will close. as long as the password you type into the console matches the one you coded it will work fine ;)
@denizenofdarkness5030
@denizenofdarkness5030 2 жыл бұрын
Hey, I tried doing conditional statements on visual basic using an online compiler. I did it exactly like how it should be done, but it's stil showing an error. Got any tips?
@magdangalaira9717
@magdangalaira9717 3 жыл бұрын
Thanks for sharing your idea about that😊I hope you can make more videos😊
@Poofu
@Poofu 13 жыл бұрын
is there any way to make it so if it is anything else it says something else?
@mdjaberhossain7387
@mdjaberhossain7387 4 жыл бұрын
Thanks a lot sir...These are most helpful for beginner
@Yuoruddo
@Yuoruddo 13 жыл бұрын
Why does the single equal sign work here? Shouldn't you need a double equals?
@rvinelle7142
@rvinelle7142 9 жыл бұрын
hey how can i download visual studio is there link to it
@mrscurry99
@mrscurry99 8 жыл бұрын
why do you only use console applications?
@ThesexyMrX
@ThesexyMrX 8 жыл бұрын
i agree, i need some forms tuts
@azkymohamed123
@azkymohamed123 8 жыл бұрын
just here to says thanks for the videos
@TheLousyProductions
@TheLousyProductions 12 жыл бұрын
Because the If statements do not exist BEFORE he types his password, notice that we have typed the If statements only AFTER he types his password. I'm assuming that each Line of code is read one by one in the order they are typed and not read all at once. For it to work the way you are saying, I guess the If statements would have to come BEFORE everything else. Try it out.
@TheCrookHook
@TheCrookHook 13 жыл бұрын
@Yuoruddo I was also used to the double equals when comparing (in Java). In VB though, I guess it's only 1 equals to compare lol I didn't like that either XD
@sunehrraalamtorosa1101
@sunehrraalamtorosa1101 6 жыл бұрын
Can you tell the pseudocode for this?????
@ivandrofly
@ivandrofly 11 жыл бұрын
How to ignore the string comparing?!
@TheCrookHook
@TheCrookHook 13 жыл бұрын
@DOVARIRAMU If you would have written sam123 and did "if password = "thenewboston" then it wouldn't have done anything because you need an "else" statement. The "else" statement is used if the condition you are veryfiing is false. ex: If password = "thenewboston" then console.writeline("Good pass") else console.writeline("Wrong pass") end
@mohajeran
@mohajeran 10 жыл бұрын
Hi Sam; I have an excel sheet that does some calculations. First, cell A1 needs to be initialized by a number (let’s say 1). Now cells A2 to A5 read the value of A1 and do some calculations. If one of cells A2 to A5 has a value between equal to 0, then value of cell A1 has reached its maximum, otherwise A1 should be increased by 1. Upon incrementing A1, I need to check again if one of the cells A2 to A5 hold a 0 value, if yes then A1 has reached its maximum value, otherwise A1 needs to be increased again by 1, and so on. I think this should be done by VB, but I am not sure how. Any feedback you can give me. ? thank you very much.
@mohajeran
@mohajeran 10 жыл бұрын
I find the solution.!
@melek9048
@melek9048 12 жыл бұрын
did you read 'The Witcher' or played the game?
@apoorvgoel490
@apoorvgoel490 12 жыл бұрын
This guy rocks
@ChrisPTY507
@ChrisPTY507 12 жыл бұрын
i dunno why u used end if after the "welcome sam" quote,that if statement is incomplete because you need an else to finish it,because basically is the name is not sam,the incomplete if will do nothing,just a waste of space...
@F_L_U_X
@F_L_U_X 12 жыл бұрын
Gerald is not equal to Sam?! SINCE WHEN?!
@RAMUDOVARI
@RAMUDOVARI 13 жыл бұрын
If I want to create my password is "sam123" then what is my result?
@notserpmale03
@notserpmale03 9 жыл бұрын
Private Sub forwardcontrol1_Click() If WebBrowser1.Visible = True (This part is giving me the error, it wont register as in if statment) WebBrowser1.Go Forward End Sub what is wrong with that. and no, (it isnt the go Forward part that has worked forever)
@retro2712
@retro2712 7 жыл бұрын
and it needs to be If WebBrowser1.Visible = True then webbrowser1.go forward endif
@OptiGE
@OptiGE 12 жыл бұрын
After you Write that your name is sam. Then Welcome Sam should pop up. Then AFTER that it should ask for your password... Why doesn't it work like that? Why does the Welcome Sam string wait until you have written the password to?
@Yotsuba090
@Yotsuba090 8 жыл бұрын
I know this is old, but adding a comment here to show what you're talking about, because I was asking myself the same thing when going over this tutorial. Putting this here in case someone was curious what the code would look like if they come across this comment & ViD. Module Module1 Sub Main() Console.WriteLine("What is your name?") Dim username As String = Console.ReadLine() If username = "Sam" Then Console.WriteLine("Welcome Sam!") End If Console.WriteLine() Console.WriteLine("What is your password?") Dim password As String = Console.ReadLine() Console.WriteLine() If password = "apples" Then Console.WriteLine("You have entered the correct password!") End If Console.ReadLine() End Sub End Module
@zalmanpinuozman8250
@zalmanpinuozman8250 6 жыл бұрын
Thank you for than teacher✔✔🇸🇴
@o0OMadMikeO0o
@o0OMadMikeO0o 13 жыл бұрын
@onlivegamer You could have writte Console.WriteLine("Welcome" & username) and skip the first if statement but nevermind. I guess if was the objective of the vid xD
@BunnehRealm
@BunnehRealm 12 жыл бұрын
This isnt bucky, this is sam.
@rmz1994
@rmz1994 12 жыл бұрын
thanks for that
@MrHolesVids
@MrHolesVids 13 жыл бұрын
@gilbert4321 ?
@evaldaskowka
@evaldaskowka 13 жыл бұрын
@Yuoruddo Different language buddy
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
after 100 tutor's
@o0OMadMikeO0o
@o0OMadMikeO0o 13 жыл бұрын
@JestTutorials Cool, Want a cookie now you fool?
@ChrisPTY507
@ChrisPTY507 12 жыл бұрын
I was born in mars......am i weird?
@magoomba
@magoomba 13 жыл бұрын
T. Dodge
@RahilWazirAli
@RahilWazirAli 12 жыл бұрын
50 liker!!
@kingzmasendeke3374
@kingzmasendeke3374 4 жыл бұрын
anyone 2020
@morg4nevs713
@morg4nevs713 4 жыл бұрын
ok
@JacobBanerjee2821
@JacobBanerjee2821 11 жыл бұрын
100st, seriously.
@bramvermeulen3447
@bramvermeulen3447 11 жыл бұрын
0 dislikes
@pmackni
@pmackni 11 жыл бұрын
0.o
Visual Basic Tutorial - 14 - Else If And Else
6:41
thenewboston
Рет қаралды 128 М.
Visual Basic Tutorial - 8 - Variables
6:36
thenewboston
Рет қаралды 219 М.
Excel VBA IF THEN Statement (with ELSEIF & Looping in cells)
12:10
Leila Gharani
Рет қаралды 324 М.
Visual Basic Tutorial - 7 - Errors
6:05
thenewboston
Рет қаралды 188 М.
Visual Basic Tutorial - 3 - Getting Familiar With The IDE
5:21
thenewboston
Рет қаралды 303 М.
Visual Basic .NET Tutorial 3 - Using If then Else Statements in Visual Basic
4:59
C# if statements 🤔
6:27
Bro Code
Рет қаралды 49 М.
Using Llama Coder As Your AI Assistant
9:18
Matt Williams
Рет қаралды 74 М.