#if, else and if else
x = 5
if (x==10) {
print("X is equal to 10")
}else if (x == 12){
print("X is 12")
}else{
print("x is not any of the above")
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter