; if (condition) { ... }
(if_statement
  condition: (parenthesized_expression (_) @cond.test)
  consequence: (_) @cond.consequence)

; Ternary: condition ? a : b
(ternary_expression
  condition: (_) @ternary.test
  consequence: (_) @ternary.then
  alternative: (_) @ternary.else) @ternary.expr
