if statement
if( ID = josh ):
print("ID confirmed")
// python
else:
print("ID does not exist")
if statement
if( ID = josh ):
print("ID confirmed")
// python
else:
print("ID does not exist")
if statement
if( name = 'george washington'):
print("You have the same name as the first president of the United States")
// python
else:
print("You do not have the same name as George Washington")
IF Statement
if(Boolean_expression) {
if statement
if somecommand; then
# do this if somecommand has an exit code of 0
fi
IF Statement
if(Boolean_expression) {
// Statements will execute if the Boolean expression is true
}
if statement
if(true) {
document.write("True");
} else {
document.write("False");
}
IF Statement
if(Boolean_expression) {
// Statements will execute if the Boolean expression is true
}
If 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.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us