How do I make a field blank if another field's criteria is not met?

I have a Regex field that should only contain a value if another field (number field) is > 1.

I have tried the following formulas with no luck;

this.nil if field(“ConsignmentStatus”) == 1

if field(“ConsignmentStatus”) > 1

Thanks

Solved it with:

this if field(“ConsignmentStatus”) > 1