# python program to illustrate If else statement
#!/usr/bin/python
i = 20
if (i < 15):
print("i is smaller than 15")
print("i'm in if Block")
else:
print("i is greater than 15")
print("i'm in else Block")
print("i'm not in if and not in else Block")
var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}
if (condition is) {
true, do this
} else {
false, do this
}
int num = 5;
if (n > 0) {
System.out.println("This is a positive number")
}
>> number=23
>> guess = input('Enter a number : ')
>> if guess == number:
>> print('Congratulations! You guessed it.')
>> elif guess < number:
**( It is giving me 'Invalid Syntax')**
>> else:
**( It is also giving me 'Invalid syntax')**
if ( x > 10 )
{
cout << "x is greater than 10";
}
else
{
cout << "x is less than 10";
}
print("Idk")
driver = webdriver.Firefox()
const isTaskCompleted = false;
if (isTaskCompleted) {
console.log('Task completed');
} else {
console.log('Task incomplete');
}
gbgnh