RosettaCodeData/Task/Conditional-structures/OxygenBasic/conditional-structures.oxy

21 lines
171 B
Plaintext

if a then b=c else b=d
if a=0
b=c
elseif a<0
b=d
else
b=e
end if
select case a
case 'A'
v=21
case 'B'
v=22
case 1 to 64
v=a+300
case else
v=0
end select