{"id":1170,"date":"2023-07-25T12:57:12","date_gmt":"2023-07-25T12:57:12","guid":{"rendered":""},"modified":"2023-07-25T12:57:12","modified_gmt":"2023-07-25T12:57:12","slug":"expressions","status":"publish","type":"page","link":"https:\/\/fusion360.in.ua\/?page_id=1170","title":{"rendered":"\u0412\u0438\u0440\u0430\u0437\u0438"},"content":{"rendered":"<div class=\"body_content\" id=\"body-content\">\n<div class=\"head-block\">\n<h1 itemprop=\"name\">\u0412\u0438\u0440\u0430\u0437\u0438<\/h1>\n<\/div>\n<p> \u0412\u0438\u0440\u0430\u0437 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043e\u0434\u043d\u0438\u043c \u0456\u0437 \u0442\u0430\u043a\u0438\u0445:<\/p>\n<ul>\n<li> \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437<\/li>\n<li> \u0412\u0438\u0440\u0430\u0437 \u043f\u0440\u0438\u0441\u0432\u043e\u0454\u043d\u043d\u044f<\/li>\n<li> \u0420\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0432\u0438\u0440\u0430\u0437<\/li>\n<li> \u0412\u0438\u0440\u0430\u0437 \u043a\u043e\u043c\u0430<\/li>\n<li> \u0423\u043c\u043e\u0432\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437<\/li>\n<li> \u0412\u0438\u043a\u043b\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0456\u0457<\/li>\n<\/ul>\n<p> \u0412\u0438\u0440\u0430\u0437\u0438 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0437\u0433\u0440\u0443\u043f\u043e\u0432\u0430\u043d\u0456 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0434\u0443\u0436\u043e\u043a \u0456 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0438\u043c\u0438, \u0442\u043e\u0431\u0442\u043e \u0432\u0438\u0440\u0430\u0437 \u043c\u043e\u0436\u0435 \u0441\u043a\u043b\u0430\u0434\u0430\u0442\u0438\u0441\u044f \u0437 \u043f\u0456\u0434\u0432\u0438\u0440\u0430\u0437\u0456\u0432.<\/p>\n<h2 id=\"arithmetic-expression\"> \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437<\/h2>\n<p> \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u2014 \u0446\u0435 \u0431\u0443\u0434\u044c-\u044f\u043a\u0430 \u043a\u043e\u043c\u0431\u0456\u043d\u0430\u0446\u0456\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0456\u0432 \u0456 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0430\u0431\u043e \u043f\u043e\u0431\u0456\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n<h4 id=\"examples\"> \u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438<\/h4>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"pln\">a<\/span> <span class=\"pun\">+<\/span><span class=\"pln\"> b c<\/span> <span class=\"pun\">++<\/span> <span class=\"pln\">m<\/span> <span class=\"pun\">&lt;&lt;<\/span><span class=\"pln\"> <\/span><span class=\"lit\">1<\/span><\/code><\/pre>\n<h2 id=\"assignment-expression\"> \u0412\u0438\u0440\u0430\u0437 \u043f\u0440\u0438\u0441\u0432\u043e\u0454\u043d\u043d\u044f<\/h2>\n<p> \u0412\u0438\u0440\u0430\u0437 \u043f\u0440\u0438\u0441\u0432\u043e\u0454\u043d\u043d\u044f \u0441\u043a\u043b\u0430\u0434\u0430\u0454\u0442\u044c\u0441\u044f \u0437\u0456 \u0437\u043c\u0456\u043d\u043d\u043e\u0457 \u0432 \u043b\u0456\u0432\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043f\u0440\u0438\u0441\u0432\u043e\u044e\u0432\u0430\u043d\u043d\u044f \u0442\u0430 \u0432\u0438\u0440\u0430\u0437\u0443 \u0432 \u043f\u0440\u0430\u0432\u0456\u0439 \u0447\u0430\u0441\u0442\u0438\u043d\u0456.<\/p>\n<h4 id=\"examples\"> \u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438<\/h4>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"pln\">a<\/span> <span class=\"pun\">=<\/span><span class=\"pln\"> x<\/span> <span class=\"pun\">+<\/span><span class=\"pln\"> <\/span><span class=\"lit\">42<\/span> <span class=\"pln\">b<\/span> <span class=\"pun\">+=<\/span><span class=\"pln\"> c s<\/span> <span class=\"pun\">=<\/span><span class=\"pln\"> <\/span><span class=\"str\">&quot;Hello&quot;<\/span><\/code><\/pre>\n<h2 id=\"string-expression\"> \u0420\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0432\u0438\u0440\u0430\u0437<\/h2>\n<p> \u0420\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u2014 \u0446\u0435 \u0431\u0443\u0434\u044c-\u044f\u043a\u0430 \u043a\u043e\u043c\u0431\u0456\u043d\u0430\u0446\u0456\u044f \u0440\u044f\u0434\u043a\u043e\u0432\u0438\u0445 \u0456 \u0441\u0438\u043c\u0432\u043e\u043b\u044c\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0456\u0432 \u0456 \u0440\u044f\u0434\u043a\u043e\u0432\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430.<\/p>\n<h4 id=\"examples\"> \u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438<\/h4>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"pln\">s<\/span> <span class=\"pun\">+<\/span><span class=\"pln\"> <\/span><span class=\"str\">&quot;.brd&quot;<\/span> <span class=\"pln\">t<\/span> <span class=\"pun\">+<\/span><span class=\"pln\"> <\/span><span class=\"str\">&#39;x&#39;<\/span><\/code><\/pre>\n<h2 id=\"comma-expression\"> \u0412\u0438\u0440\u0430\u0437 \u043a\u043e\u043c\u0430<\/h2>\n<p> \u0412\u0438\u0440\u0430\u0437 \u043a\u043e\u043c\u0430 \u2014 \u0446\u0435 \u043f\u043e\u0441\u043b\u0456\u0434\u043e\u0432\u043d\u0456\u0441\u0442\u044c \u0432\u0438\u0440\u0430\u0437\u0456\u0432, \u0440\u043e\u0437\u0434\u0456\u043b\u0435\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u043c \u043a\u043e\u043c\u0430.<\/p>\n<p> \u0412\u0438\u0440\u0430\u0437\u0438 \u0437 \u043a\u043e\u043c\u043e\u044e \u043e\u0431\u0447\u0438\u0441\u043b\u044e\u044e\u0442\u044c\u0441\u044f \u0437\u043b\u0456\u0432\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043e, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u0432\u0438\u0440\u0430\u0437\u0443 \u0437 \u043a\u043e\u043c\u043e\u044e \u0454 \u0442\u0438\u043f \u0456 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043a\u0440\u0430\u0439\u043d\u044c\u043e\u0433\u043e \u043f\u0440\u0430\u0432\u043e\u0433\u043e \u0432\u0438\u0440\u0430\u0437\u0443.<\/p>\n<h4 id=\"example\"> \u043f\u0440\u0438\u043a\u043b\u0430\u0434<\/h4>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"pln\">i<\/span> <span class=\"pun\">++,<\/span><span class=\"pln\"> j<\/span> <span class=\"pun\">++,<\/span><span class=\"pln\"> k<\/span> <span class=\"pun\">++<\/span><\/code><\/pre>\n<h2 id=\"conditional-expression\"> \u0423\u043c\u043e\u0432\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437<\/h2>\n<p> \u0423\u043c\u043e\u0432\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u0443\u043c\u043e\u0432\u043d\u0438\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0434\u043b\u044f \u043f\u0440\u0438\u0439\u043d\u044f\u0442\u0442\u044f \u0440\u0456\u0448\u0435\u043d\u043d\u044f \u0443 \u0432\u0438\u0440\u0430\u0437\u0456.<\/p>\n<h4 id=\"example\"> \u043f\u0440\u0438\u043a\u043b\u0430\u0434<\/h4>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"kwd\">int<\/span><span class=\"pln\"> a<\/span> <span class=\"pun\">;<\/span><span class=\"pln\">\r\n<\/span><span class=\"com\">\/\/ ...code that calculates &#39;a&#39;<\/span><span class=\"pln\">\r\n<\/span><span class=\"kwd\">string<\/span><span class=\"pln\"> s<\/span> <span class=\"pun\">=<\/span><span class=\"pln\"> a<\/span> <span class=\"pun\">?<\/span><span class=\"pln\"> <\/span><span class=\"str\">&quot;True&quot;<\/span><span class=\"pln\"> <\/span><span class=\"pun\">:<\/span><span class=\"pln\"> <\/span><span class=\"str\">&quot;False&quot;<\/span> <span class=\"pun\">;<\/span><\/code><\/pre>\n<h2 id=\"function-call\"> \u0412\u0438\u043a\u043b\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0456\u0457<\/h2>\n<p> \u0412\u0438\u043a\u043b\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u043f\u0435\u0440\u0435\u0434\u0430\u0454 \u043f\u043e\u0442\u0456\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438 \u0434\u043e \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043e\u0457 \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0430\u0431\u043e \u0432\u0431\u0443\u0434\u043e\u0432\u0430\u043d\u043e\u0457 \u0444\u0443\u043d\u043a\u0446\u0456\u0457. \u0424\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u0456 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438, \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u0456 \u0443 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457, \u0437\u0430\u043c\u0456\u043d\u044e\u044e\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c\u0438 \u0432\u0438\u0440\u0430\u0437\u0456\u0432, \u044f\u043a\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u044e\u0442\u044c\u0441\u044f \u044f\u043a \u0444\u0430\u043a\u0442\u0438\u0447\u043d\u0456 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u0438 \u0432\u0438\u043a\u043b\u0438\u043a\u0443 \u0444\u0443\u043d\u043a\u0446\u0456\u0457.<\/p>\n<h4 id=\"example\"> \u043f\u0440\u0438\u043a\u043b\u0430\u0434<\/h4>\n<pre class=\"pre codeblock\"> <code class=\"prettyprint prettyprinted\" style=\"\"><span class=\"kwd\">int<\/span><span class=\"pln\"> p<\/span> <span class=\"pun\">=<\/span><span class=\"pln\"> strchr<\/span> <span class=\"pun\">(<\/span> <span class=\"pln\">s<\/span> <span class=\"pun\">,<\/span><span class=\"pln\"> <\/span><span class=\"str\">&#39;b&#39;<\/span> <span class=\"pun\">);<\/span><\/code><\/pre>\n<div class=\"related-links\">\n<div class=\"familylinks\">\n<div class=\"parentLink\"> <strong>\u0413\u043e\u043b\u043e\u0432\u043d\u0430 \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430:<\/strong> <a class=\"link\" href=\"?p=1164\">\u043c\u043e\u0432\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f \u043a\u043e\u0440\u0438\u0441\u0442\u0443\u0432\u0430\u0447\u0430<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u041e\u0440\u0456\u0433\u0456\u043d\u0430\u043b \u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438:<\/strong> <a class=\"link\" href=https:\/\/help.autodesk.com\/cloudhelp\/ENU\/Fusion-ECAD\/files\/ECD-ULP-EXPRESSIONS.htm>Expressions<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0438\u0440\u0430\u0437\u0438 \u0412\u0438\u0440\u0430\u0437 \u043c\u043e\u0436\u0435 \u0431\u0443\u0442\u0438 \u043e\u0434\u043d\u0438\u043c \u0456\u0437 \u0442\u0430\u043a\u0438\u0445: \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u0412\u0438\u0440\u0430\u0437 \u043f\u0440\u0438\u0441\u0432\u043e\u0454\u043d\u043d\u044f \u0420\u044f\u0434\u043a\u043e\u0432\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u0412\u0438\u0440\u0430\u0437 \u043a\u043e\u043c\u0430 \u0423\u043c\u043e\u0432\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u0412\u0438\u043a\u043b\u0438\u043a \u0444\u0443\u043d\u043a\u0446\u0456\u0457 \u0412\u0438\u0440\u0430\u0437\u0438 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0437\u0433\u0440\u0443\u043f\u043e\u0432\u0430\u043d\u0456 \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0434\u0443\u0436\u043e\u043a \u0456 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0438\u043c\u0438, \u0442\u043e\u0431\u0442\u043e \u0432\u0438\u0440\u0430\u0437 \u043c\u043e\u0436\u0435 \u0441\u043a\u043b\u0430\u0434\u0430\u0442\u0438\u0441\u044f \u0437 \u043f\u0456\u0434\u0432\u0438\u0440\u0430\u0437\u0456\u0432. \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u0410\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u0438\u0439 \u0432\u0438\u0440\u0430\u0437 \u2014 \u0446\u0435 \u0431\u0443\u0434\u044c-\u044f\u043a\u0430 \u043a\u043e\u043c\u0431\u0456\u043d\u0430\u0446\u0456\u044f \u0447\u0438\u0441\u043b\u043e\u0432\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0456\u0432 \u0456 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0430\u0431\u043e \u043f\u043e\u0431\u0456\u0442\u043e\u0432\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430. \u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438 a + [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1164,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1170"}],"collection":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1170"}],"version-history":[{"count":0,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1170\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=\/wp\/v2\/pages\/1164"}],"wp:attachment":[{"href":"https:\/\/fusion360.in.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}