Use set to assign attribute rules
Added format option