というような比較の仕方はできるのでしょうか?
(アンダースコア)をつかったif文を使えるのかという質問でしたら、残念ながらSwiftのif文は(アンダースコス)の条件判定はできません。
The Swift Programming Language (Swift 3.0.1)にも
If
In its simplest form, the if statement has a single if condition. It executes a set of statements only if that condition is true.
とif文は条件文がtrueになった時に実行されるとかかれており、条件分はbool値を返す文じゃないといけないですが、_(アンダースコア)はswiftではbool値を返さないみたいなのでif文ではつかえないようですね。
一方switch文はThe Swift Programming Language (Swift 3.0.1)で
Switch
A switch statement considers a value and compares it against several possible matching patterns. It then executes an appropriate block of code, based on the first pattern that matches successfully. A switch statement provides an alternative to the if statement for responding to multiple potential states.
とif文よりもswitch文の方が柔軟にパターンマッチを処理できます。
タプルでif文で比較するならfromageblancさんがおっしゃってたように、コンマで中身を比較すればいいかと思います
swift
1let tapple = (1, "apple", 5.5)
2
3if tapple.1 == "apple" {
4 print("OK")
5}
6
7