{"id":3749,"date":"2016-01-26T11:00:45","date_gmt":"2016-01-26T10:00:45","guid":{"rendered":"http:\/\/www.samlogic.net\/blog\/?p=3749"},"modified":"2023-07-12T06:31:06","modified_gmt":"2023-07-12T06:31:06","slug":"visual-installers-scripting-language-now-supports-else","status":"publish","type":"post","link":"https:\/\/www.samlogic.net\/blog\/2016\/01\/visual-installers-scripting-language-now-supports-else\/","title":{"rendered":"Visual Installer&#8217;s scripting language now supports ELSE"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignright\" src=\"https:\/\/www.samlogic.net\/pad\/icons\/visual_installer.gif\" border=\"0\" alt=\"SamLogic Visual Installer Logotype\">We have updated <a href=\"https:\/\/www.samlogic.net\/visual-installer\/visual-installer.htm\" target=\"_blank\" rel=\"noopener noreferrer\">Visual Installer&#8217;s<\/a> built-in <a href=\"https:\/\/www.samlogic.net\/visual-installer\/tips\/tips-pages\/visual-installer-scripting-language\/visual-installer-scripting-language.htm\" target=\"_blank\" rel=\"noopener noreferrer\">scripting language<\/a> so it now supports an <strong>ELSE<\/strong> statement. This will help creating simpler scripts in some situations.<\/p>\n<p>For example, assume that you want to run a particular and specialized application or setup program in a specific version of Windows, and a general application or setup program in all other versions of Windows. Before you needed to cover all Windows version with <strong>IF<\/strong> statements and OS checks, but now you only need to check for one OS, and add an <strong>ELSE<\/strong> statement to cover the rest. Example:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.samlogic.net\/blog\/images\/product-visual-installer\/visual-installer-script-if-else-endif.png\" border=\"0\" alt=\"Example how to use ELSE\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have updated Visual Installer&#8217;s built-in scripting language so it now supports an ELSE statement. This will help creating simpler scripts in some situations. For example, assume that you want to run a particular and specialized application or setup program in a specific version of Windows, and a general application or setup program in all &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.samlogic.net\/blog\/2016\/01\/visual-installers-scripting-language-now-supports-else\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Visual Installer&#8217;s scripting language now supports ELSE&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[10,15],"tags":[],"_links":{"self":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/3749"}],"collection":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/comments?post=3749"}],"version-history":[{"count":3,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/3749\/revisions"}],"predecessor-version":[{"id":7781,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/posts\/3749\/revisions\/7781"}],"wp:attachment":[{"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/media?parent=3749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/categories?post=3749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.samlogic.net\/blog\/wp-json\/wp\/v2\/tags?post=3749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}