Comparison of Enumeration in Validation Rule

I’m trying to design a validation rule that validates specific fields dependeing on the selection of an enumeration value. To achieve this, i need to properly conpare the chosen enumeration value.

i’ve tried the following:
assuming the enum values are : 0,1
[enumField] == “0”
FieldValueAsNumber(enumField) =0
FieldValueAsString(enumField)= “0”

none of these approaches has led to the desired result.

Hi,
[enumField]==“0” should do the job.
Could you add a screenshot of the error message that is displayed inside the SME validation rule editor?

After following up this Request, the problem was:
There are a few fields, let’s say A and B, which are required if the [enumField] !=“0”
Therefore, you need to write a validation rule for each field, which should be required if [enumField] !=“0”. Here, the rule should be written like: FieldNotFilled(A) and [enumField] !=“0”. Then you will get an error if field A is not filled and the enumField has the value 1 or 2. This error will be displayed directly at field A.