+ 1
What is if-statement
3 Answers
+ 3
if and else are pretty much as they appear.
If(1==1){
do this
}
else{
else do this
}
If the information in the ( ) is true, then the code inside the if brackets will run. if the information is false, for example if(1==2) then it will skip that code block and instead run the else block