Lua Tutorial #5: If and Else

preview_player
Показать описание
We learn about conditional branching via 'if', 'elseif', and 'else' in Lua.
Рекомендации по теме
Комментарии
Автор

This video has help me out so much when writing my programs. I couldn't understand the LUA books for anything, but these (especially this), is simple, easy to learn and figure out, and took what was a mental nightmare into something I can easily work with. Nice job.

RobThefox
Автор

More please! I'm learning so much! *clicked subscribe*

XaithixAncalime
Автор

Just wanted to thank you for these, you have made the learning of this language A LOT easier for a (relatively) new to programming geek like myself :~)

I skimmed through your remaining tutorial pages on the site, and didnt see anything for resolving things like case sensitivity etc., now I will probably look in the manual for a Ucase$, and LCase$ function, but a sort of maintenance/misc. vid with things such as this would be helpful if you have the time.

Again, Thanks for these!!! :~)

WellxamGamer
Автор

These tutorials are amazing! First tutorials for LUA that made a lot of sense to me. I hope there are more coming! :D

inarngb
Автор

This video was very helpful! Thanks for posting it.

junyth
Автор

Yes! Really happy to see you making more Lua tutorials Joe, please keep going! :D

PeterLakeTV
Автор

People, he has more tutorials in his site. The link is in the description, just press next in the bottom.

CadenzaSolista
Автор

These tutorials cover the very basics, which were easy to pick up when one already knows a few programing languages. Where should I look if I want to make stuff in Gmod?

KethusNadroev
Автор

Please make a new episode ! it's very helpful !

slashrebornu
Автор

Love this! Thank you for making these! Trying to make mods for project zomboid 🧟‍♂️

scorpiot
Автор

He doesn't actually need it, it will still work, though it won't be so friendly. You won't know what to do in his program if there wasn't a ("What is your name?") print.

Denivic
Автор

Simple string concatenation as discussed in previous tutorials -- for example: print("Hello, " .. name)

DevHQLessons
Автор

Don't forget a lot of other games including Gmod are extensible with Lua, not just games either.

millyrocker
Автор

How many tutorials are you planning to make on this? You wouldn't believe how hard it is to find a long playlist with Lua tutorials :)

NorBosniGaming
Автор

How would you make it so if you didnt enter joe it would say 'hello (the name you entered)' ?

JonnB
Автор

how do you get values from lua back to c++?

Anddosdd
Автор

Please, make a tutorial about advanced maths

Pirah
Автор

Does this works?
name = io.read()

if name == "Bob" then
print("Hello bob")
elseif name == "Joe" then
print("Hello Joe")
else
print("Who are you")
end

NeroTheDog
Автор

So im looking to find a good like interpret program can someone help me im on windows

nickj.
Автор

Keeps giving me an error "expected around 'Master'". I took out Master and it said "expected around '!'". I took out the exclamation point and it said "enter your name: " I wrote "Xaithix" and it said "end". What version are you using? I think I might be using a different version... Or could you help in any way? Here's my code:

io.write("Enter your name: ")
name = io.read()

if name == "Xaithix" then
print(Hello Master!)
end

I'll try to find out which version I'm using.
Thanks

XaithixAncalime