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 ~= ‘sheriff’ then

my first thought were like this:

if ~= ‘sheriff, police’ then

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

im also going to add two jobs to this:

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