रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
blockly > ब्लॉक करें > isEnabled
Block.isEnabled() तरीका
यह पता लगाएं कि यह ब्लॉक चालू है या नहीं. अगर किसी ब्लॉक को बंद करने की कोई वजह नहीं है, तो उसे चालू माना जाता है. ब्लॉक को मैन्युअल तरीके से चालू करने के बावजूद, वह अन्य वजहों से बंद रह सकता है. जैसे, जब ब्लॉक किसी अमान्य जगह पर हो.
हस्ताक्षर:
isEnabled(): boolean;
लौटाए जाने वाले प्रॉडक्ट:
बूलियन
अगर चालू है, तो True.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-11-08 (UTC) को अपडेट किया गया."],[[["The `isEnabled()` method determines if a block is currently enabled or disabled based on various factors."],["It returns `true` if the block is enabled and there are no conditions preventing its use, otherwise it returns `false`."],["Blocks can be disabled due to reasons like invalid location or despite manual enabling attempts by the user."]]],["The `Block.isEnabled()` method determines if a block is enabled. It returns a boolean value: `true` if the block is enabled, `false` otherwise. A block's enabled state is determined by the absence of disabling conditions. Even if manually enabled, a block might remain disabled due to factors like an invalid location. The method checks the block's current state and returns whether it's enabled or not.\n"]]