I want to be able to compare values from the [String] level instead of the String level. Here's what I mean:
var connectedNames:[[[String]]] = [[[]]]
for var row: Int = 0; row < connectedNames[0].count; row++ {
if self.connectedNames[0][row] as! String == "asdf" {
}
}
But the cast here from [String] to String fails so I can't make this value comparison.
So the main problem is this: Is there anyway to compare the String value of a [[String]] to a String? In other words, the String value that I get from indexing connectedNames like so connectedNames[0][0] == "Some String"?