if else statement
a = 1
b = 2
if a < b:
print("a is less than b") # This will run because 1 < 2
else:
#This only runs if the condition for the if statement is not met
print("a is greater than or equal to b")var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}int a = 100;
int b = 100;
if (a < b){
print("a is less than b") // This will run because 1 < 2
}
else{
//This only runs if the condition for the if statement is not met
print("a is greater than or equal to b")
}
Also in C#:
- progress openedge odbc connection string c#
- check for collision unity c#
- datagridview select row column cell c#
- how to make a pause feautre in unity
- c# datetime dd/mm/yyy hh:mm:ss
- ASP select box all states
- run async methods within a sync process
- unity calculate path
- get all child gameObject of gameObject C#
- how to make error sound c#
- how to use variables in c#
- native-googlesignin configuration is null!?
- fibonacci series using recursion
- get user directory of file in c#
- unity main texture not working
- insert variables into string c#
- Read csv file into wpf C#
- .sh script: check if file exist
- reference to gameobject in different scene unity
- c# razor add disabled to button if
- c# pass mouse events to parent
- c# stop loop in method
- how to reference scripts in other scenes unity
- c sharp list indexer