{"id":179,"date":"2024-11-06T12:18:02","date_gmt":"2024-11-06T12:18:02","guid":{"rendered":"https:\/\/contentbot.ai\/documentation\/?post_type=docs&#038;p=179"},"modified":"2024-11-06T12:18:03","modified_gmt":"2024-11-06T12:18:03","password":"","slug":"commands-define","status":"publish","type":"docs","link":"https:\/\/contentbot.ai\/documentation\/docs\/commands-define\/","title":{"rendered":"Commands: \/define"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h_8df8905163\">Overview<\/h2>\n\n\n\n<p>The \/define command can be used to create\/update a variable, where the value is static, or a combination of two variables<\/p>\n\n\n\n<p>Input text can be inline text, or variables and the output will be an acknowledgement that the variable was created<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h_9768dde222\">Examples<\/h2>\n\n\n\n<p>Example1: <em>Creates a variable called #greeting<\/em><\/p>\n\n\n\n<p><em><mark style=\"background-color:#d3d3d3\" class=\"has-inline-color\">\/define [Hello world] (as #greeting)<\/mark><\/em><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/define [text] (as #variable)\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/5qcNgMEV1V0?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Example 2 <em>Creates a variable called #greeting by combining two order variables<\/em><\/p>\n\n\n\n<p><em><mark style=\"background-color:#d3d3d3\" class=\"has-inline-color\">\/define [#salutation #subject] as (#greeting)<\/mark><\/em><\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\/define [#variable1 #variable2] as (#newvariable)\" width=\"800\" height=\"450\" src=\"https:\/\/www.youtube.com\/embed\/JjkqFCNyNbs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Overview The \/define command can be used to create\/update a variable, where the value is static, or a combination of two variables Input text can be inline text, or variables and the output will be an acknowledgement that the variable was created Examples Example1: Creates a variable called #greeting \/define [Hello world] (as #greeting) Example [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[9],"doc_tag":[],"class_list":["post-179","docs","type-docs","status-publish","hentry","doc_category-commands"],"aioseo_notices":[],"year_month":"2026-04","word_count":80,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"contentbot","author_nicename":"contentbot","author_url":"https:\/\/contentbot.ai\/documentation\/author\/contentbot\/"},"doc_category_info":[{"term_name":"Commands","term_url":"https:\/\/contentbot.ai\/documentation\/docs-category\/commands\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":1,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/179\/revisions"}],"predecessor-version":[{"id":180,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/docs\/179\/revisions\/180"}],"wp:attachment":[{"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_category?post=179"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/contentbot.ai\/documentation\/wp-json\/wp\/v2\/doc_tag?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}