| @@ 431-434 (lines=4) @@ | ||
| 428 | } |
|
| 429 | ||
| 430 | // MIN |
|
| 431 | if (isset($data['min']) and $readValue < $data['min']) { |
|
| 432 | $this->log('The number have to be greather than' . ' ' . $data['min'].'.', $data); |
|
| 433 | return false; |
|
| 434 | } |
|
| 435 | ||
| 436 | // MAX |
|
| 437 | if (isset($data['max']) and $readValue > $data['max']) { |
|
| @@ 437-440 (lines=4) @@ | ||
| 434 | } |
|
| 435 | ||
| 436 | // MAX |
|
| 437 | if (isset($data['max']) and $readValue > $data['max']) { |
|
| 438 | $this->log('The number have to be less than' . ' ' . $data['max'].'.', $data); |
|
| 439 | return false; |
|
| 440 | } |
|
| 441 | ||
| 442 | // STEP http://www.w3schools.com/tags/att_input_step.asp |
|
| 443 | // Value 0 ever is valid (and if you try Divide to Zero, it will take error because the result is inifinite |
|