RosettaCodeData/Task/Loops-Foreach/Liberty-BASIC/loops-foreach.basic
2023-07-01 13:44:08 -04:00

12 lines
277 B
Text

in$ ="Not,Hardly,Just,Adequately,Quite,Really,Very,Fantastically,xyzzy"
element$ =""
i =1 ' used to point to successive elements
do
element$ =word$( in$, i, ",")
if element$ ="xyzzy" then exit do
print element$; " good!"
i =i +1
loop until 1 =2
end