{"id":28246,"date":"2017-06-16T10:33:02","date_gmt":"2017-06-16T02:33:02","guid":{"rendered":"http:\/\/localhost\/help\/?page_id=28246"},"modified":"2024-01-16T12:19:56","modified_gmt":"2024-01-16T04:19:56","slug":"boolean","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/boolean\/","title":{"rendered":"Boolean()"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>Boolean(Arg1)<\/strong><\/p>\n<h2><span id=\"Returns\">Returns<\/span><\/h2>\n<p class=\"intro-text\">Converts the supplied argument into a Boolean data type.<\/p>\n<h2><span id=\"Inputs\">Inputs<\/span><\/h2>\n<p class=\"intro-text\"><strong>Arg1<\/strong>: The argument to be converted.<br \/>\nBehaviour:\u00a0Required<br \/>\nDimension: Collection, SingleValue, MultiCollection<br \/>\nValid data types: Boolean, Decimal, Integer, String<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/calculation-syntax\/#Data_Type\">How to format data types<\/a><\/p>\n<h2>Examples<\/h2>\n<p class=\"intro-text\">Expression:\u00a0<span class=\"code-fragment\">Boolean(True)<\/span><br \/>\nResult: Returns the Boolean value of <em>True<\/em> as a Boolean value of <em>True.<\/em> <br \/>\nE.g.\u00a0<span style=\"color: #0000ff;\">True<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Boolean(12.2)<\/span><br \/>\nResult: Returns the decimal value of <em>12.2<\/em>\u00a0as a Boolean value of <em>False<\/em>. <br \/>\nE.g. <span style=\"color: #0000ff;\">False<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Boolean(12)<\/span><br \/>\nResult: Returns the integer value of <em>12<\/em>\u00a0as a Boolean value of <em>False<\/em>. <br \/>\nE.g. <span style=\"color: #0000ff;\">False<\/span><\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">Boolean(\"True\")<\/span><br \/>\nResult: Returns the string value of <em>\"True\"<\/em>\u00a0as a Boolean value of <em>True.<\/em> <br \/>\nE.g. <span style=\"color: #0000ff;\">True<\/span><\/p>\n<h2><span id=\"Release_History\">Release History<\/span><\/h2>\n<ul class=\"intro-text\">\n<li>Boolean() 4.6.5\n<ul class=\"intro-text\">\n<li>Changed Arg1 parameter to support MultiCollection values.<\/li>\n<\/ul>\n<\/li>\n<li>Boolean() 4.0\n<ul class=\"intro-text\">\n<li>Initial version<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Converts the supplied argument into a Boolean data type.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/boolean\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":10466,"parent":3650,"menu_order":15,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,397],"class_list":["post-28246","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-casting-functions","Version-4-0","Version-4-6-5","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/28246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=28246"}],"version-history":[{"count":4,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/28246\/revisions"}],"predecessor-version":[{"id":64824,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/28246\/revisions\/64824"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=28246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=28246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=28246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}