{"id":3228,"date":"2020-11-04T10:14:19","date_gmt":"2020-11-04T10:14:19","guid":{"rendered":"https:\/\/www.snapsurveys.com\/support-snapxmp\/?post_type=epkb_post_type_1&#038;p=3228"},"modified":"2024-01-30T09:38:39","modified_gmt":"2024-01-30T09:38:39","slug":"conditionally-include-content-in-your-reports","status":"publish","type":"epkb_post_type_1","link":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/","title":{"rendered":"Conditionally including content in your reports"},"content":{"rendered":"\n<p>\n  You can set up conditions on parts of your report so they will only be put in the report if the conditions are met. You enter conditions in the <strong>N\/A<\/strong> field on a report instruction. Conditions can be applied to any instruction that puts content in the report. These are:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\n    Execute instructions\n  <\/li>\n\n\n\n<li>\n    Analysis (table, chart, list etc) instructions\n  <\/li>\n\n\n\n<li>\n    Information instructions\n  <\/li>\n\n\n\n<li>\n    Test grid instructions\n  <\/li>\n<\/ul>\n\n\n\n<p>\n  The conditions must be a true\/false evaluation, (such as whether data is in a chart). You can only use evaluation expressions that are available for the survey as a whole. This means you can:\n<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\n    evaluate values in analyses (e.g. table cells)\n  <\/li>\n\n\n\n<li>\n    evaluate a survey field variable (such as cases)\n  <\/li>\n\n\n\n<li>\n    evaluate a variable@context (e.g. month@context=Jan)\n  <\/li>\n<\/ul>\n\n\n\n<p>\n  You cannot use expressions that depend on the response in a particular case, such as NUM.\n<\/p>\n\n\n\n<p>\n  For example, the instruction below will only add the text to the report if the value in the table cell, row two of column one of table AN1 is not greater than 14.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"395\" height=\"118\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png\" alt=\"Information report instruction that is conditionally included\" class=\"wp-image-3229\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png 395w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png-300x90.png 300w\" sizes=\"(max-width: 395px) 100vw, 395px\" \/><\/figure>\n\n\n\n<p>\n  The chart below will only be created if the chart C5 had data in it.\n<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"495\" height=\"406\" src=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5b-png.png\" alt=\"Conditionally include content using N\/A information\" class=\"wp-image-3230\" srcset=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5b-png.png 495w, https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5b-png-300x246.png 300w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p>   For reference information about the sort of expressions which can be used in a N\/A field, see the list of <a href=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/filter-expressions\/\" target=\"_blank\" rel=\"noreferrer noopener\">filter expressions<\/a>. <\/p>\n\n\n\n<p>\n  When creating reports that include conditional content, it is worth testing the report by running it with the option <strong>Print report item numbers<\/strong>. This tags each bit of the report with the report name and instruction number that created that content. You can then see exactly which instruction in which sub-report has produced content (or not).\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can set up conditions on parts of your report so they will only be put in the report if the conditions are met. You enter conditions in the N\/A field on a report instruction. Conditions can be applied to any instruction that puts content in the report. These are: The conditions must be a [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"epkb_post_type_1_category":[71],"epkb_post_type_1_tag":[207,208],"class_list":["post-3228","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-adding-content-to-reports","epkb_post_type_1_tag-cell-ref","epkb_post_type_1_tag-cell-referencing"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Conditionally including content in your reports | SnapSurveys<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Conditionally including content in your reports | SnapSurveys\" \/>\n<meta property=\"og:description\" content=\"You can set up conditions on parts of your report so they will only be put in the report if the conditions are met. You enter conditions in the N\/A field on a report instruction. Conditions can be applied to any instruction that puts content in the report. These are: The conditions must be a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/\" \/>\n<meta property=\"og:site_name\" content=\"SnapSurveys\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/snapsurveys\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-30T09:38:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@snapsurveys\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/\",\"name\":\"Conditionally including content in your reports | SnapSurveys\",\"isPartOf\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png\",\"datePublished\":\"2020-11-04T10:14:19+00:00\",\"dateModified\":\"2024-01-30T09:38:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#primaryimage\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png\",\"contentUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png\",\"width\":395,\"height\":118,\"caption\":\"InsertingContent5a.PNG\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Snap XMP Support\",\"item\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp-archive\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Conditionally including content in your reports\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/\",\"name\":\"Snap XMP Support Hub\",\"description\":\"Support documentation for Snap Surveys products\",\"publisher\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization\",\"name\":\"Snap Surveys\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg\",\"contentUrl\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg\",\"width\":867,\"height\":159,\"caption\":\"Snap Surveys\"},\"image\":{\"@id\":\"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/snapsurveys\",\"https:\/\/x.com\/snapsurveys\",\"https:\/\/www.linkedin.com\/company\/snapsurveys\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Conditionally including content in your reports | SnapSurveys","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/","og_locale":"en_GB","og_type":"article","og_title":"Conditionally including content in your reports | SnapSurveys","og_description":"You can set up conditions on parts of your report so they will only be put in the report if the conditions are met. You enter conditions in the N\/A field on a report instruction. Conditions can be applied to any instruction that puts content in the report. These are: The conditions must be a [&hellip;]","og_url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/","og_site_name":"SnapSurveys","article_publisher":"https:\/\/www.facebook.com\/snapsurveys","article_modified_time":"2024-01-30T09:38:39+00:00","og_image":[{"url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_site":"@snapsurveys","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/","name":"Conditionally including content in your reports | SnapSurveys","isPartOf":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#primaryimage"},"image":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#primaryimage"},"thumbnailUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png","datePublished":"2020-11-04T10:14:19+00:00","dateModified":"2024-01-30T09:38:39+00:00","breadcrumb":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#primaryimage","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png","contentUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/11\/insertingcontent5a-png.png","width":395,"height":118,"caption":"InsertingContent5a.PNG"},{"@type":"BreadcrumbList","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp\/conditionally-include-content-in-your-reports\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.snapsurveys.com\/support-snapxmp\/"},{"@type":"ListItem","position":2,"name":"Snap XMP Support","item":"https:\/\/www.snapsurveys.com\/support-snapxmp\/snapxmp-archive\/"},{"@type":"ListItem","position":3,"name":"Conditionally including content in your reports"}]},{"@type":"WebSite","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#website","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/","name":"Snap XMP Support Hub","description":"Support documentation for Snap Surveys products","publisher":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.snapsurveys.com\/support-snapxmp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#organization","name":"Snap Surveys","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/","url":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg","contentUrl":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-content\/uploads\/2020\/06\/snap-surveys-logo-fc.svg","width":867,"height":159,"caption":"Snap Surveys"},"image":{"@id":"https:\/\/www.snapsurveys.com\/support-snapxmp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/snapsurveys","https:\/\/x.com\/snapsurveys","https:\/\/www.linkedin.com\/company\/snapsurveys"]}]}},"_links":{"self":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/3228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/comments?post=3228"}],"version-history":[{"count":3,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/3228\/revisions"}],"predecessor-version":[{"id":9908,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1\/3228\/revisions\/9908"}],"wp:attachment":[{"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/media?parent=3228"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1_category?post=3228"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/www.snapsurveys.com\/support-snapxmp\/wp-json\/wp\/v2\/epkb_post_type_1_tag?post=3228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}