Examples of Mixed Functions
Mixed functions are used in a data validation function.
AND and OR operators in the following ways:AND- When using theANDoperator, both the functions must meet the given criteria.OR- When using theORoperator, either of the functions must meet the given criteria.
| Function | Description |
|---|---|
in(attributes.BirthCountry.value, 'US') and exists(attributes.SSN.value) or not(in(attributes.BirthCountry.value,'US')) | The validation function checks that the SSN number is not empty if the country value is US. If the validation is met then the appropriate validation message is displayed. |
gt(attributes.Age.value,'21') and lt(attributes.Age.value,'100')
| The validation function checks that the age value is in the range of 21 to 100. If the validation is met then the appropriate validation message is displayed. |