1if( ID = josh ):
2 print("ID confirmed")
3 // python
4else:
5 print("ID does not exist")
1if( name = 'george washington'):
2 print("You have the same name as the first president of the United States")
3 // python
4else:
5 print("You do not have the same name as George Washington")
1if(Boolean_expression) {
2 // Statements will execute if the Boolean expression is true
3}
1if(Boolean_expression) {
2 // Statements will execute if the Boolean expression is true
3}
4If the Boolean expression evaluates to true then the block of code inside the if statement will be executed. If not, the first set of code after the end of the if statement (after the closing curly brace) will be executed.
5
6