रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
blockly > ब्लॉक > setOutput
Block.setOutput() तरीका
सेट करें कि यह ब्लॉक कोई वैल्यू दिखाता है या नहीं.
हस्ताक्षर:
setOutput(newBoolean: boolean, opt_check?: string | string[] | null): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
newBoolean |
बूलियन |
अगर कोई आउटपुट है, तो True. |
opt_check |
string | string[] | null |
(ज़रूरी नहीं) दिखाए गए डेटा का टाइप या दिखाए गए डेटा के टाइप की सूची. अगर कोई भी वैल्यू (उदाहरण के लिए, वैरिएबल पाने की सुविधा) रिटर्न की जा सकती है, तो null या undefined. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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 `setOutput` method determines if a block produces a value or not."],["It takes a boolean argument (`newBoolean`) indicating the output status and an optional `opt_check` for specifying the output type(s)."],["Calling `setOutput` does not return any value (void)."]]],["The `Block.setOutput()` method determines if a block returns a value. It accepts a boolean `newBoolean`: `true` indicates an output exists, `false` otherwise. An optional `opt_check` parameter specifies the type or types returned, using a string or string array. If `null` or `undefined`, any type is acceptable. The method's return type is `void`. The key actions are setting and defining the parameters of a block's output status and its type.\n"]]