Forum Discussion
Komag
7 years agoRoku Guru
My whole point was to NOT process stuff sometimes, so that the counter results would be sequential, such as:
but apparently that can only be done by working with big IF statements and lots of indenting!
1: apple
2: carrot
3: dapple
4: fapple
5: gourd
but apparently that can only be done by working with big IF statements and lots of indenting!
FUNCTION testNext()
testA = ["apple", 2, "carrot", "dapple", 5, "fapple", "gourd"]
testInt = 0
FOR EACH fruit IN testA
IF TYPE(fruit) = "roString"
testInt++
? "testNext() found a String, fruit " fruit ", testInt" testInt
' And do 50 more lines of code,
' all indented to be within this huge IF block,
' instead of just skipping to next item in list,
' too bad
' Could maybe use GOTO but that's not something I like to do,
' So the IF block with indenting is the lesser of two evils!
END IF
END FOR
END FUNCTION