@@ 281-284 (lines=4) @@ | ||
278 | preg_match('/([<>=]+)(.*)/', $condition, $matches); |
|
279 | list(, $operator, $operand) = $matches; |
|
280 | ||
281 | if (!is_numeric($operand)) { |
|
282 | $operand = str_replace('"', '""', $operand); |
|
283 | $operand = Calculation::wrapResult(strtoupper($operand)); |
|
284 | } |
|
285 | ||
286 | return $operator . $operand; |
|
287 | } |
@@ 1195-1198 (lines=4) @@ | ||
1192 | $condition = Functions::ifCondition($condition); |
|
1193 | // Loop through arguments |
|
1194 | foreach ($aArgs as $key => $arg) { |
|
1195 | if (!is_numeric($arg)) { |
|
1196 | $arg = str_replace('"', '""', $arg); |
|
1197 | $arg = Calculation::wrapResult(strtoupper($arg)); |
|
1198 | } |
|
1199 | ||
1200 | $testCondition = '=' . $arg . $condition; |
|
1201 | if (Calculation::getInstance()->_calculateFormulaValue($testCondition)) { |