+ 1

I don't understand if statements at all can someone pls put me through

2nd Sep 2016, 9:01 AM
anthony
5 ответов
+ 1
Think of if statements as normal conversations. When do you use 'if'? For example, "If I do this, you do this or you do that." So whenever we're calling an if statement, another thing should take place. Let's place a normal 4x4 block on a land of grass. If we want to make it disappear, we can use different types statements to do so. But here is an if statement for it: If world.block then - Checking if the block in that land of grass does exist. world.block:Destroy() - Then it should be destroyed, or disappear. Basically if the world block is true, it can disappear.
2nd Sep 2016, 9:58 AM
man succ
man succ - avatar
0
bro call me. I'll help u out 9020870222
2nd Sep 2016, 10:48 AM
Gurneet Singh Kohli
Gurneet Singh Kohli - avatar
0
thank u guys
2nd Sep 2016, 11:07 AM
anthony
0
No problem, there's always help when you need it ;)
2nd Sep 2016, 11:36 AM
man succ
man succ - avatar
0
if statement is like putting something under a condition eg If you want to login to your computer your Computer, you input password, this is where if statement comes in,.if your password is correct it shows desktop if not it will still ask for the password
3rd Sep 2016, 1:36 PM
samson