Write, Bureaucrats, Administrators
4,332
edits
mNo edit summary |
mNo edit summary |
||
Line 187: | Line 187: | ||
Using scripts, you can check the correctness of input data. For example, perhaps a field integer values are allowed only from 0 to 200. | Using scripts, you can check the correctness of input data. For example, perhaps a field integer values are allowed only from 0 to 200. | ||
<source lang="javascript" | <source lang="javascript"> | ||
var num = entry().field("Number") // Get the value of field Number | var num = entry().field("Number") // Get the value of field Number | ||
if (num < 0 || num > 200) { // Test for value matching allowable range | if (num < 0 || num > 200) { // Test for value matching allowable range |