| 127 | return value.Value > secondValueAsInteger.Value |
| 128 | } |
| 129 | func (value StringValue) isGreaterThan(secondValue ValueInterface) bool { |
| 130 | nullValue, isNull := secondValue.(NullValue) |
| 131 | if isNull { |
| 132 | return nullValue.isSmallerThan(value) |
| 133 | } |
| 134 | |
| 135 | secondValueAsString, isString := secondValue.(StringValue) |
| 136 | if !isString { |
| 137 | log.Fatal("Can't compare String with other type") |
| 138 | } |
| 139 | |
| 140 | return value.Value > secondValueAsString.Value |
| 141 | } |
| 142 | |
| 143 | func (value NullValue) isGreaterThan(_ ValueInterface) bool { |
| 144 | return false |