Function call and repeat loop

I want to verify if the following is proper or allowed:

I need to use a function call but also want to use a repeat loop. Is the below allowed (this is pseudocode):

// Funtion to Check to see if any family members live in Texas
Set I = 0
Repeat
Function Texas (State[I]) as String
If State[I] == “TX”
Then
//Output name(s) of family members who live in Texas
Write Name[I] + “is from Texas”
Enf If
End Function

If not any suggestions or things to look at?
Last edited on
Topic archived. No new replies allowed.