{"id":3300,"date":"2015-06-18T22:23:28","date_gmt":"2015-06-18T22:23:28","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=3300"},"modified":"2015-06-18T22:25:07","modified_gmt":"2015-06-18T22:25:07","slug":"names-a-file-condition","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/names-a-file-condition\/","title":{"rendered":"Names a File Condition"},"content":{"rendered":"<p>The <em>Names a File<\/em> condition takes an action by determining if a file does or doesn&#8217;t exist. For example, placing a logo from a file only if that file actually exists:<\/p>\n<p>In this instance, there is a variable which has an image from a file:<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file.png\" alt=\"name-file\" width=\"301\" height=\"238\" class=\"alignnone size-full wp-image-3306\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file.png 301w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file-300x238.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file-150x119.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file-250x198.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file-228x180.png 228w\" sizes=\"(max-width: 301px) 100vw, 301px\" \/><\/a><\/p>\n<p>If the image is placed using a rule, right-click <em>Rule > Add AND Condition > Names a file that exists<\/em>:<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1.png\" alt=\"name-file1\" width=\"365\" height=\"275\" class=\"alignnone size-full wp-image-3302\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1.png 365w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1-300x226.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1-150x113.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1-250x188.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file1-239x180.png 239w\" sizes=\"(max-width: 365px) 100vw, 365px\" \/><\/a><\/p>\n<p>If placed using the Document Template, right-click <em>Content > Add AND Condition > Names a file that exists<\/em>:<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2.png\" alt=\"name-file2\" width=\"365\" height=\"307\" class=\"alignnone size-full wp-image-3304\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2.png 365w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2-300x252.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2-150x126.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2-250x210.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2-214x180.png 214w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file2-357x300.png 357w\" sizes=\"(max-width: 365px) 100vw, 365px\" \/><\/a><\/p>\n<p>Set the condition and select OK. In this example, if <em>Logo<\/em> contains a file that exists, the image will be placed:<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3.png\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3.png\" alt=\"name-file3\" width=\"610\" height=\"372\" class=\"alignnone size-full wp-image-3303\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3.png 610w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3-300x183.png 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3-150x91.png 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3-250x152.png 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3-550x335.png 550w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3-295x180.png 295w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2015\/06\/name-file3-492x300.png 492w\" sizes=\"(max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Names a File condition takes an action by determining if a file does or doesn&#8217;t exist. For example, placing a logo from a file only if that file actually exists: In this instance, there is a variable which has an image from a file: If the image is placed using a rule, right-click Rule [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[66,3],"tags":[49],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3300"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=3300"}],"version-history":[{"count":2,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3300\/revisions"}],"predecessor-version":[{"id":3307,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/3300\/revisions\/3307"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=3300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=3300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=3300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}