{"id":38930,"date":"2026-06-22T20:38:09","date_gmt":"2026-06-23T01:38:09","guid":{"rendered":"https:\/\/library-staging.tradingtechnologies.com\/doc\/if-then-block-2\/"},"modified":"2026-06-22T20:38:11","modified_gmt":"2026-06-23T01:38:11","slug":"if-then-block-2","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/ja\/if-then-block-2\/","title":{"rendered":"If Then \u30d6\u30ed\u30c3\u30af"},"content":{"rendered":"<p><!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p>     <!-- in source YML header, should also match the filename\/url --><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<p> <!-- pages using refernce-tab-list layout will not trigger this condition. The Heading will be set in that layout file--><\/p>\n<div>\n<h2 id=\"fills-intro\" hidden>If Then \u30d6\u30ed\u30c3\u30af<\/h2>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/lb-if-then-block-1.png\"><\/p>\n<p>[If Then] \u30d6\u30ed\u30c3\u30af\u306f [Boolean] \u5165\u529b\u5024\u306b\u57fa\u3065\u3044\u3066\u3001 2 \u3064\u306e\u5024\u306e\u3046\u3061 1 \u3064\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u5165\u529b\u5024\u304c [TRUE] \u306e\u5834\u5408\u3001\u30d6\u30ed\u30c3\u30af\u306f\u30d6\u30ed\u30c3\u30af\u306e [ThenValue] \u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u5024\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u5165\u529b\u5024\u304c [FALSE] \u306e\u5834\u5408\u3001\u30d6\u30ed\u30c3\u30af\u306f\u30d6\u30ed\u30c3\u30af\u306e [ElseValue] \u6761\u4ef6\u306b\u57fa\u3065\u3044\u3066\u5024\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"label label-success\">\u4f8b<\/span> <b>[If Then] \u30d6\u30ed\u30c3\u30af\u306f [if] \u30dd\u30fc\u30c8\u3092\u901a\u3058\u3066 [Boolean] \u5024\u3092\u53d7\u4fe1\u3057\u3001\u5024\u304c [TRUE] \u306e\u5834\u5408 5 \u3092\u51fa\u529b\u3057\u3001\u5024\u304c [FALSE] \u306e\u5834\u5408\u306f 10 \u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/b><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/lb-if-then-block-intro-example-1.png\" alt=\"\"><\/p>\n<p><a href=\"logic-block-eq.html\">Equal \u30d6\u30ed\u30c3\u30af<\/a>\u3068\u540c\u69d8\u306b\u3001\u30d6\u30ed\u30c3\u30af\u306f\u9ec4\u8272\u306e\u5909\u6570\u5165\u529b\u30dd\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3001\u3053\u308c\u3067\u7570\u306a\u3063\u305f\u7a2e\u985e\u306e\u30c7\u30fc\u30bf\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 (\u6570\u5024\u3001[Boolean] \u5024\u3001\u307e\u305f\u306f\u9650\u6708) \u3002\u4e21\u65b9\u306e\u5165\u529b\u30c7\u30fc\u30bf\u304c\u540c\u3058\u7a2e\u985e\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3001\u30d6\u30ed\u30c3\u30af\u306f\u3001\u4ed6\u306e\u30dd\u30fc\u30c8\u3092\u63a5\u7d9a\u3059\u308b\u3068\u3059\u3050\u306b\u3001\u81ea\u52d5\u7684\u306b 2 \u756a\u76ee\u306e\u5165\u529b\u30dd\u30fc\u30c8\u306e\u30c7\u30fc\u30bf \u30bf\u30a4\u30d7\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u307e\u305f\u51fa\u529b\u30dd\u30fc\u30c8\u306f\u3001\u5165\u529b\u30dd\u30fc\u30c8\u306e\u30c7\u30fc\u30bf \u30bf\u30a4\u30d7\u306b\u5408\u308f\u305b\u3066\u52d5\u7684\u306b\u8abf\u6574\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p><!--\n  \n\n<p hidden>The following examples uses an If Then block to determine a quantity to use when submitting an order. The If Then block checks the current Bid quantity for an instrument. If the bid quantity is greater than 50, the If Then block outputs 10 to the Order block's Quantity port. Otherwise, it outputs 5.<\/p>\n\n\n  \n\n<p><span class=\"label label-success\">Example<\/span> <strong>The following examples uses an If Then block to determine a quantity to use when submitting an order. The If Then block checks the current Bid quantity for an instrument. If the bid quantity is greater than 50, the If Then block outputs 10 to the Order block's Quantity port. Otherwise, it outputs 5.<\/strong><\/p>\n\n\n  \n\n<p>The following examples uses an If Then block to determine a quantity to use when submitting an order. The If Then block checks the current Bid quantity for the ES Sep16 instrument. If the bid quantity is greater than 50, the If Then block outputs 10 to the Order block's Quantity port. Otherwise, it outputs 5.<\/p>\n\n\n--><\/p>\n<p><span class=\"label label-success\">\u4f8b<\/span> <strong>\u4ee5\u4e0b\u306e\u4f8b\u306f\u3001[If Then] \u30d6\u30ed\u30c3\u30af\u3092\u4f7f\u3063\u3066\u3001\u6ce8\u6587\u3092\u767a\u6ce8\u3059\u308b\u969b\u306b\u4f7f\u7528\u3059\u308b\u679a\u6570\u3092\u6c7a\u5b9a\u3057\u307e\u3059\u3002[If Then] \u30d6\u30ed\u30c3\u30af\u304c\u9298\u67c4\u306e\u73fe\u5728\u306e\u8cb7\u5024\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u8cb7\u679a\u6570\u304c 50 \u679a\u4ee5\u4e0a\u306e\u5834\u5408\u3001[If Then] \u30d6\u30ed\u30c3\u30af\u306f [<a href=\"tb-order-block.html\">Order<\/a>] \u30d6\u30ed\u30c3\u30af\u306e [<strong>Quantity<\/strong>] \u30dd\u30fc\u30c8\u306b 10 \u679a\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u30015 \u679a\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/strong><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/lb-if-then-block-example-1.png\"><\/p>\n<p>\u8907\u6570\u306e [If Then] \u30d6\u30ed\u30c3\u30af\u3092\u63a5\u7d9a\u3057\u3001\u4ee5\u4e0b\u306e\u4f8b\u306b\u793a\u3059\u3088\u3046\u306b\u3001\u30cd\u30b9\u30c8\u3055\u308c\u305f If-Then \u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u3092\u5b9a\u7fa9\u3067\u304d\u307e\u3059\u3002\u30cd\u30b9\u30c8\u3055\u308c\u305f [If Then] \u30d6\u30ed\u30c3\u30af\u306e\u6b63\u3057\u3044\u51fa\u529b\u3092\u691c\u51fa\u3059\u308b\u306b\u306f\u3001\u5e38\u306b\u4e00\u756a\u53f3\u306e [If Then] \u30d6\u30ed\u30c3\u30af\u3067\u958b\u59cb\u3057\u3001\u51fa\u529b\u306b\u5230\u7740\u3059\u308b\u307e\u3067\u3001\u8ad6\u7406\u901a\u8def\u3092\u5de6\u306b\u305f\u3069\u308a\u307e\u3059\u3002<\/p>\n<p><span class=\"label label-success\">\u4f8b<\/span> <strong>\u30cd\u30b9\u30c8\u3055\u308c\u305f If Then \u30d6\u30ed\u30c3\u30af\u306e\u4f7f\u7528<\/strong><\/p>\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"https:\/\/library-staging.tradingtechnologies.com\/wp-content\/uploads\/2026\/06\/lb-if-then-block-nested-new-1.png\"><\/p>\n<p><!--\n  Block Properties section\n  --><\/p>\n<div>\n<h2 id=\"block-properties\">\u30d6\u30ed\u30c3\u30af \u30d7\u30ed\u30d1\u30c6\u30a3<\/h2>\n<p>\u30d6\u30ed\u30c3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u306b\u306f\u3001[<strong>Block Properties<\/strong>] \u3092\u66f4\u65b0\u3057\u307e\u3059\u3002<\/p>\n<p><!--\n    \n\n<p><img decoding=\"async\" class=\"img-responsive\" src=\"Content\/logic-block-if-then-settings.png\"><\/p>\n\n\n    --><\/p>\n<table class=\"table table-striped table-bordered\" border=\"1\">\n<thead>\n<tr>\n<th>\u30d7\u30ed\u30d1\u30c6\u30a3<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Name (\u540d\u524d)<\/td>\n<td>ADL \u30ad\u30e3\u30f3\u30d0\u30b9\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4e0b\u306b\u8868\u793a\u3055\u308c\u308b\u540d\u524d\u3002<\/td>\n<\/tr>\n<p><!--\n        \n\n<tr>\n          \n\n<td>BodyColor<\/td>\n\n\n          \n\n<td>Background color of the block<\/td>\n\n\n        <\/tr>\n\n\n        \n\n<tr>\n          \n\n<td>Description<\/td>\n\n\n          \n\n<td>Optional text to explain how the block is used<\/td>\n\n\n        <\/tr>\n\n\n    --><\/tbody>\n<\/table><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>If Then \u30d6\u30ed\u30c3\u30af [If Then] \u30d6\u30ed\u30c3\u30af\u306f [Boolean] \u5165\u529b\u5024\u306b\u57fa\u3065\u3044\u3066\u3001 2 \u3064\u306e\u5024\u306e\u3046\u3061 1 \u3064\u3092\u51fa\u529b\u3057\u307e\u3059\u3002\u5165\u529b\u5024\u304c [TRUE] \u306e\u5834\u5408\u3001\u30d6\u30ed\u30c3\u30af\u306f\u30d6\u30ed\u30c3\u30af\u306e [ThenValue] \u6761\u4ef6\u306b [&hellip;]<\/p>\n","protected":false},"author":2,"template":"","meta":{"_acf_changed":false,"footnotes":""},"docs-category":[212],"class_list":["post-38930","doc","type-doc","status-publish","hentry","docs-category-logic-blocks"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/38930","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/38930\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=38930"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=38930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}