Feature definitions based on SHP imported data

Hi,

I have imported drillhole data from an SHP file and would like to map feature definitions based on data field values for the imported elements.

In the picture below I have a line that includes a data field for Bergklass (Rock quality class) with a set value of "B" and I would like to set every element that has value "B" to a certain color.

Is this possible without using macros? And if not, can anyone guide me in how I could set up a macro?

Kind regards,

Lucas