Checking value of customer order field within Plugin
What you're probably looking for is:

if ($order-&gt;signupForNewsletter-&gt;contains('joinMailingList'))
{
    echo "I've opted in";
}
else
{
    echo 'Not matched';
}