रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
blockly > ब्लॉक > setPreviousStatement
Block.setPreviousStatement() तरीका
सेट करें कि यह ब्लॉक, किसी दूसरे ब्लॉक के नीचे चेन किया जा सकता है या नहीं.
हस्ताक्षर:
setPreviousStatement(newBoolean: boolean, opt_check?: string | string[] | null): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
newBoolean |
बूलियन |
अगर कोई पिछला स्टेटमेंट हो सकता है, तो यह वैल्यू 'सही' होगी. |
opt_check |
string | string[] | null |
(ज़रूरी नहीं) स्टेटमेंट का टाइप या स्टेटमेंट के टाइप की सूची. अगर किसी भी तरह का कनेक्शन कनेक्ट किया जा सकता है, तो यह वैल्यू शून्य/अनजान होगी. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-30 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-30 (UTC) को अपडेट किया गया."],[[["The `setPreviousStatement` method determines if a block can connect to the bottom of another block."],["It accepts a boolean argument indicating whether a previous connection is allowed and an optional argument to specify accepted connection types."],["Calling this method affects how blocks are visually presented and logically connected in Blockly workspaces."]]],["The `setPreviousStatement` method determines if a block can connect to the bottom of another. It accepts a boolean (`newBoolean`) to enable or disable this chaining capability. An optional parameter (`opt_check`) allows specifying allowed statement types, either as a single string or an array of strings; omitting this permits any type. The method modifies the block's properties and does not return any value.\n"]]