a!localVariables( local!fieldName:"5", local!operator:">", local!value:"2", a!textField( value: fv!item.fieldName, saveInto: fv!item.fieldName, validations: { a!validationMessage( message:"test", showWhen: local!fieldName & local!operator & local!value ) } ) )
Discussion posts and replies are publicly visible
Not possible like this but I would suggest simply creating a rule (i.e rule!evaluateOperator) with 3 rules inputs (value 1, value 2 and operator) and run it through a a!match which will run the appropriate operator.