'If condition in shell script fails [duplicate]

I would like to what is the issue in this script , why this if condition is getting passed i see that HI is printed , but type = A this if condition should not pass

[omega@ctsedgenode 1.1.11-SNAPSHOT_V12]$ type="A"
[omega@ctsedgenode 1.1.11-SNAPSHOT_V12]$  if [[ $type -eq "C" || $type -eq "D" ]]; then  echo 
"HI" ; fi
HI
[omega@ctsedgenode 1.1.11-SNAPSHOT_V12]$


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source