if unity 1

if unity

if () { // Put a condition in ().
	// If the condition is true then whatever is in here will happen.
} else if () { // Put a different condition in ().
	// If the if else condition is true then whatever is in here will happen.
} else { // If it doesn't equal any of the conditions.
	// If both conditions are false then this will happen.
}

Here is what the above code is Doing:
1. If the condition is true then whatever is in here will happen.
2. If the if else condition is true then whatever is in here will happen.
3. If both conditions are false then this will happen.

Similar Posts