exclude list of entries from craft.entries tag I am attempting to list out all jobs that the current author has created but which are not already to other entries they've created.

I have both an array and a string containing the entry ids to exclude which I can see with these tags:

{# delete later, only here to visually show entry ids while coding #}
&lt;p&gt;&lt;strong&gt;array:&lt;/strong&gt; {{ excludeRelatedJobs|join(', ') }}&lt;/p&gt;

{# convert array to string #}
{% set excludedJobs = excludeRelatedJobs|join(', ') %}

&lt;p&gt;&lt;strong&gt;string:&lt;/strong&gt; {{ excludedJobs }}&lt;/p&gt;


However when I try to exclude the ids from the list they are not excluded.

current code that should exclude ids:

{% set careers = craft.entries.section('careers').authorId(user.id).id('not' ~ excludedJobs) %}
&lt;ul&gt;
    {% for job in careers %}
    &lt;li&gt;&lt;a href="/careers/edit/{{ job.id }}"&gt;{{ job.title }}&lt;/a&gt;&lt;/li&gt;
    {% endfor %}
&lt;/ul&gt;


If I manually exclude the id like this it works correctly:

{% set careers = craft.entries.section('careers').authorId(user.id).id('not 581') %}
As @Youniteus stated in a comment to this post the answer was related to this question

I had to tweak the join statements a bit but it's working now.

complete code here:

{# convert array to string  so we can remove these ids #}
{% set excludedJobs = excludeRelatedJobs|join(', not ') %}

{# set careers to all jobs created by author#}
{% if not excludedJobs|length%} 
    {% set careers = craft.entries.section('careers').authorId(user.id) %}

{# filter out jobs already added to store#}
{% else %}
    {% set careers = craft.entries.section('careers').authorId(user.id).id('and, not ' ~ excludedJobs) %}
{% endif %}

&lt;ul&gt;
    {% for job in careers %}
    &lt;li&gt;&lt;a href="/careers/edit/{{ job.id }}"&gt;{{ job.title }}&lt;/a&gt;&lt;/li&gt;
    {% endfor %}
&lt;/ul&gt;