{"id":1435,"date":"2020-03-20T08:41:21","date_gmt":"2020-03-20T08:41:21","guid":{"rendered":"https:\/\/sdf-docs.mansystems.com\/docs\/acr-rules\/reliability\/predictableconditionexpression\/"},"modified":"2020-03-20T10:12:50","modified_gmt":"2020-03-20T10:12:50","slug":"predictableconditionexpression","status":"publish","type":"docs","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/predictableconditionexpression","title":{"rendered":"Conditions should always include at least one variable"},"content":{"rendered":"\n<p>Introduced in version 1.8 (26 March 2020)<\/p>\n\n\n\n<p>A condition that only consists of comparing literal values always evaluate to the same result and therefore make little sense. Probably this is a copy-pasta error or a debug override that was not removed.<\/p>\n\n\n\n<p><strong>Non-compliant example:<\/strong><\/p>\n\n\n\n<p><code>if 2 &lt; 3 then \"A\" else \"B\"<\/code><\/p>\n\n\n\n<p><strong>Compliant example:<\/strong><\/p>\n\n\n\n<p> <code>if $Variable &lt; 3 then \"A\" else \"B\" <\/code><br>                 &#8220;<\/p>\n","protected":false},"featured_media":0,"parent":97,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-1435","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1435"}],"collection":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1435"}],"version-history":[{"count":4,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1435\/revisions"}],"predecessor-version":[{"id":1441,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1435\/revisions\/1441"}],"up":[{"embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/97"}],"next":[{"title":"Day of year should not be used in parse\/format date time functions","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/dayofyear","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/1174"}],"prev":[{"title":"Check for empty string should be done properly","link":"https:\/\/sdf-docs.clevr.com\/?docs=acr-rules\/reliability\/emptystringcheck","href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=\/wp\/v2\/docs\/772"}],"wp:attachment":[{"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1435"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/sdf-docs.clevr.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}