i fucking hate cs
Just had an autism attack over this shit
Other urls found in this thread:
en.wikipedia.org
twitter.com
it's not even real you fucktard
()
{
}
(){
}
ftfy
> if(a > b && b < a)
that's how you are supposed to write functions
that is used for loops
who else
() {
}
else {
}
here?
(){};
calm down satan
// Hey guys :D
// Hope you're enjoying my code
// This is a simple (else) if statement, to check whether a condition is true or not
// if it's true, it will return true
// if it's false, it will return false
// if you have any questions, feel free to contact me on facebook. I promise I won't bite XD
// Here it goes!
// check if the condition is true
if (condition == true)
{
// make sure the condition is true, by checking if it's not false
// always be safe :)
// != means not equal fyi ;)
if (condition != false)
{
// create boolean x
// a boolean can be true or false
bool x;
// set x to true, because the condition is true
x = true;
// return x, which is true
return x;
}
}
// check if the condition is false
// only checks, if the condition isn't true
// after all, we want our code to be optimized :)
else if (condition == false)
{
// make sure the condition is false, by checking if it's not true
if (condition != true)
{
// create boolean y
// be sure to use another letter
// we don't want others to mix it up with x
bool y;
// set y to false, because the condition is false
y = false;
// return y, which is false
return y;
}
}