Although it may be easier to validate the automatic assign rule conditions in the Assign Licenses window, you can also use the Automatic License Assignments window to assign licenses.
The rule will be added to the table below, and you can add more rules:
Note: The rules you add are read using "OR" between the lines. In other words, in the above example, the rules mean that licenses are assigned automatically to new users where Department contains "Sales" or Profile contains "System". To define an "AND" condition, write the search criteria on the same line, for example "Profile=System, Department=Sales".