{"id":228,"date":"2020-08-06T11:58:26","date_gmt":"2020-08-06T10:58:26","guid":{"rendered":"http:\/\/www.qpcoaching.co.uk\/qedevelopment.co.uk\/?p=228"},"modified":"2020-08-06T12:59:00","modified_gmt":"2020-08-06T11:59:00","slug":"yocto-base_contains","status":"publish","type":"post","link":"https:\/\/qedevelopment.co.uk\/?p=228","title":{"rendered":"Yocto: base_contains"},"content":{"rendered":"\n<p>The <code>base_contains<\/code> function is used to return a value based on a search of a named variable for a given value. The following line of code for example would search the <code>DISTRO_FEATURES<\/code> variable for the text <code>bluetooth<\/code> and if found it would return the text <code>bluez5<\/code> otherwise we would get a blank.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"${@base_contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)}\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The base_contains function is used to return a value based on a search of a named variable for a given value. The following line of code for example would search the DISTRO_FEATURES variable for the text bluetooth and if found it would return the text bluez5 otherwise we would get a blank. &#8220;${@base_contains(&#8216;DISTRO_FEATURES&#8217;, &#8216;bluetooth&#8217;, &#8216;bluez5&#8217;, &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/qedevelopment.co.uk\/?p=228\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Yocto: base_contains&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[20],"tags":[21],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/228"}],"collection":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228"}],"version-history":[{"count":3,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":239,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/228\/revisions\/239"}],"wp:attachment":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}