Custom distribution

Im new to mockaroo and i’m trying to create data on doctor specialties and their procedures so i made a custom list with different types of procedures but when i preview the data it states… error: Please use field(‘Doctor_Specialty’) to access Doctor_Specialty because it starts with an upper case letter. My rule states…Doctor_Specialty == “Cardiologist”…Doctor_Specialty == “Dermatologist” etc.

Mockaroo uses Ruby for formulas like these. Ruby doesn’t allow variables to start with an upper case letter, so the workaround is as suggested in the error message - to access the field using the field(name: String) method. So instead of this:

Doctor_Specialty == "Cardiologist"

use this:

field("Doctor_Specialty") == "Cardiologist"