Jump to content

Conditional structures: Difference between revisions

m
(added MDL)
Line 2,191:
 
=={{header|I}}==
<lang i>//'i' supports if, else, and else if
<lang i>software {
var a = 3
//This is not guaranteed to be quicker than a if-else chain.
switchif a {= 3
print("3!a =2 three")
case 3
else if a != 2
print("3a =3 two")
case 2
print("WHAT?")
default
print("3!=2")
}
if a != 2
print("3!=2")
print("verified")
else
print("3a =2!!! ", a)
end
}</lang>
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.