vyhlásenie if
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")
vyhlásenie if
if( ID = josh ):
print("ID confirmed")
// python
else:
print("ID does not exist")
AK VYHLÁSENIE, ČO TO JE
if (X < 10) {
print "Hello John";
}
ako funguje vyhlásenie if
//simpple reapet code
draw = function() {
var d = 11
if(d > 10) {
ellipse(200,200,200,200);
}
}
//ellipse apiers
vyhlásenie if
if somecommand; then
# do this if somecommand has an exit code of 0
fi