| 154 | } |
| 155 | |
| 156 | String sub(const ArgRef& other) const |
| 157 | { |
| 158 | String s = toString(); |
| 159 | if(isFloat(s)) { |
| 160 | return String(s.toFloat() - other.toFloat()); |
| 161 | } |
| 162 | if(isNumber(s)) { |
| 163 | return String(s.toInt() - other.toInt()); |
| 164 | } |
| 165 | return s + String(other); |
| 166 | } |
| 167 | |
| 168 | private: |
| 169 | SectionTemplate& tmpl; |
no test coverage detected