Bool Function IsDogRace(Race[] dogArray, Actor WhichActor) ;is the actor this function is being called on one of the dog races in the array? Or any race Int dIndex = dogArray.Length While dIndex If WhichActor.GetRace() == dogArray[dIndex] ;is race Return True Else dIndex -= 1 EndIf EndWhile If dIndex == 0 Return False EndIf EndFunction
It seems possibly functional to me. The Return True WOULD stop the While loop, correct?