Help with adding two jobs to xplayer command

hey! so i have a question and thought you guys over here maybe will be able to help me!

so my question is:

how can i hade two jobs to this command:

if xPlayer.job.name ~= ‘sheriff’ then

my first thought were like this:

if xPlayer.job.name ~= ‘sheriff, police’ then

which clearly didnt work. Can someone maybe help me out?

im also going to add two jobs to this:

IsCop = (job.name == ‘sheriff’)
but im asuming its the same as the previous one:)

try this:

if xPlayer.job.name ~= 'sheriff','police' then