Define a Enum.HasFlag condition
[ConditionHasFlag("F1", nameof(Switch4), EnumFlags.Flag1)]
Determine whether the property Switch4 is HasFlag to EnumFlags.Flag1
For Flags Enum property
For more information, please refer to the "Condition" description section